Beispiel #1
0
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self._main_model = MainModel()
        self._main_view = MainView()
        self._main_controller = MainController(self._main_model,
                                               self._main_view)

        self._main_model.set_main_controller(self._main_controller)
        self._main_view.set_main_controller(self._main_controller)

        self._main_view.show()
Beispiel #2
0
class App(PyQt4.QtGui.QApplication):
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self._main_model = MainModel()
        self._main_view = MainView()
        self._main_controller = MainController(self._main_model,
                                               self._main_view)

        self._main_model.set_main_controller(self._main_controller)
        self._main_view.set_main_controller(self._main_controller)

        self._main_view.show()
Beispiel #3
0
class App(PyQt4.QtGui.QApplication):
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self._main_model = MainModel()
        self._main_view = MainView()
        self._main_controller = MainController(self._main_model, self._main_view)

        self._main_model.set_main_controller(self._main_controller)
        self._main_view.set_main_controller(self._main_controller)



        self._main_view.show()
Beispiel #4
0
    def __init__(self, sys_argv):
        super(App, self).__init__(sys_argv)
        self._main_model = MainModel()
        self._main_view = MainView()
        self._main_controller = MainController(self._main_model, self._main_view)

        self._main_model.set_main_controller(self._main_controller)
        self._main_view.set_main_controller(self._main_controller)



        self._main_view.show()
Beispiel #5
0
 def _set_up_views(self):
     # This is the main application's view, a container widget to be filled
     # by whatever is currently in the scene.
     self.header = PleroApp.create_title(
         'Pleroline - A Pleroma client.')
     self.footer = PleroApp.create_title('by Faris <*****@*****.**>')
     self.frame = urwid.Frame(
         urwid.LineBox(self.main_view),
         header=self.header,
         footer=self.footer,
         focus_part='body')
     self.views = {}
     self.views['login'] = LoginView(self)
     self.views['main'] = MainView(self)
Beispiel #6
0
import enamlx
enamlx.install()

import enaml
from enaml.qt.qt_application import QtApplication

with enaml.imports():
    from main_view import MainView

app = QtApplication()
view = MainView()
view.show()
app.start()
Beispiel #7
0
import sys

from main_window import MainWindow
from main_view import MainView
from PySide2.QtWidgets import QApplication, QGraphicsScene

if __name__ == "__main__":
    app = QApplication([])
    #app.setStyleSheet("QWidget{font-size: 12px; color: rgb(226, 226, 226)}")

    scene = QGraphicsScene()
    view = MainView(scene)
    window = MainWindow(view)
    window.show()

    sys.exit(app.exec_())
from main_view import MainView
from main_controller import MainController
from mfcc_svm import Voice
from PyQt5 import QtCore, QtGui, QtWidgets
import sys

if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    voice = Voice()
    main_view = MainView(MainWindow)
    main_controller = MainController(voice, main_view)

    MainWindow.show()
    sys.exit(app.exec_())
Beispiel #9
0
 def __init__(self):
     window = tk.Tk()
     MainController(MainView(window), MasterTransceiverInterface())
     window.mainloop()