[go: nahoru, domu]

Skip to content

Commit

Permalink
Revert PyQt4.uic.loadUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Michel committed Mar 22, 2016
1 parent 20f16d3 commit e8f6c25
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions sequence/widget/editor/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,26 @@


# Imports
import sequence
import os, sys, types
import os
import sys
import types
from PyQt4 import QtGui, QtCore
from PyQt4.uic import loadUi
from functools import partial
import logging

# Imports from SequenceEditor package
# Widget imports
from sequence.widget.editor.item import SequenceItem
from sequence.widget.editor.blockmodel import BlockModel
from sequence.widget.runner.control import ControlWidget
from sequence.widget.runner.loggingtab import LoggingTabWidget
from sequence.resource.pyqt.editor_ui import Ui_PySequenceEditor


# Import from other packages
# Local imports
from sequence.action.abstract import get_action_list
from sequence.common.constant import XBM, IMAGES_DIR
from sequence.common.parser import parse_sequence_file, XMLSequence
from sequence.core.engine import add_log_handler

from sequence.widget.runner.control import ControlWidget
from sequence.widget.runner.loggingtab import LoggingTabWidget




# Signal Handler class definition
class SignalHandler(QtCore.QObject):
Expand Down Expand Up @@ -65,15 +62,16 @@ class EditorWidget(QtGui.QWidget):
def __init__(self, parent=None):
# Setup UI
super(EditorWidget, self).__init__(parent)
self.ui = loadUi('sequence/resource/pyqt/source/editor.ui', self)
self.ui = Ui_PySequenceEditor()
self.ui.setupUi(self)

# Customize UI
self.ui.main_splitter.setStretchFactor(1, 1)
self.ui.center_splitter.setStretchFactor(0, 1)
self.logging_tab = LoggingTabWidget(parent=self)
self.logging_tab.setTabPosition(QtGui.QTabWidget.South)
self.logging_tab.log_table.verticalHeader().setDefaultSectionSize(20)
self.logging_tab.resize(0,0)
self.logging_tab.resize(0, 0)
self.ui.center_splitter.addWidget(self.logging_tab)
self.ui.tab_widget.clear()
self.control_widget = ControlWidget(parent=self)
Expand Down

0 comments on commit e8f6c25

Please sign in to comment.