mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Keystroke editor dialog is showed even if config has changed
This commit is contained in:
parent
5490a59eb5
commit
7facb9b020
@ -28,6 +28,8 @@ class keystrokeEditorDialog(baseDialog.BaseWXDialog):
|
|||||||
|
|
||||||
def put_keystrokes(self, actions, keystrokes):
|
def put_keystrokes(self, actions, keystrokes):
|
||||||
for i in keystrokes:
|
for i in keystrokes:
|
||||||
|
if actions.has_key(i) == False:
|
||||||
|
continue
|
||||||
action = actions[i]
|
action = actions[i]
|
||||||
self.actions.append(i)
|
self.actions.append(i)
|
||||||
keystroke = keystrokes[i]
|
keystroke = keystrokes[i]
|
||||||
|
@ -130,6 +130,10 @@ class URLStream(object):
|
|||||||
self.stream.play()
|
self.stream.play()
|
||||||
log.debug("played")
|
log.debug("played")
|
||||||
|
|
||||||
|
def stop_audio(self):
|
||||||
|
if hasattr(self, "stream") and self.stream.is_playing == True:
|
||||||
|
self.stream.stop()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def delete_old_tempfiles():
|
def delete_old_tempfiles():
|
||||||
for f in glob(os.path.join(tempfile.gettempdir(), 'tmp*.wav')):
|
for f in glob(os.path.join(tempfile.gettempdir(), 'tmp*.wav')):
|
||||||
|
Loading…
Reference in New Issue
Block a user