Reorganized code for audioRecorder and config module

This commit is contained in:
2019-01-06 15:35:07 -06:00
parent 9a576d70e4
commit 9490952d6c
5 changed files with 3 additions and 137 deletions

View File

@@ -8,7 +8,7 @@ import logging
import widgetUtils
import presenters
import interactors
from wxUI.dialogs import audioRecorder as gui2
import views
from mutagen.id3 import ID3
from sessionmanager.utils import seconds_to_string
from wxUI.dialogs import attach as gui
@@ -93,7 +93,7 @@ class attach(object):
self.dialog.remove.Enable(True)
def upload_voice_message(self, *args, **kwargs):
a = presenters.audioRecorderPresenter(view=gui2.audioRecorderDialog(), interactor=interactors.audioRecorderInteractor())
a = presenters.audioRecorderPresenter(view=views.audioRecorderDialog(), interactor=interactors.audioRecorderInteractor())
if a.file != None and a.duration != 0:
audioInfo = {"type": "voice_message", "file": a.file, "from": "local"}
self.attachments.append(audioInfo)

View File

@@ -25,7 +25,6 @@ from update import updater
from issueReporter import issueReporter
from . import messages
from . import buffers
from . import configuration
from . import player
from . import posts
from . import profiles