1
0

new class to show buttons in LineEdit. fixes #1050

This commit is contained in:
ThomasV
2015-04-20 11:49:27 +02:00
parent 8251c5b6d9
commit a3ed4ce2a7
5 changed files with 61 additions and 51 deletions

View File

@@ -92,7 +92,7 @@ class Plugin(BasePlugin):
def handler():
self.receiver = self._recv(parent=parent)
self.receiver.start()
parent.add_button(':icons/microphone.png', handler, _("Read from microphone"))
parent.addButton(':icons/microphone.png', handler, _("Read from microphone"))
@hook
def show_text_edit(self, parent):
@@ -100,7 +100,7 @@ class Plugin(BasePlugin):
blob = str(parent.toPlainText())
self.sender = self._send(parent=parent, blob=blob)
self.sender.start()
parent.add_button(':icons/speaker.png', handler, _("Send to speaker"))
parent.addButton(':icons/speaker.png', handler, _("Send to speaker"))
def _audio_interface(self):
interface = amodem.audio.Interface(config=self.modem_config)