def applySetting(self): self.setSizePolicy(SiPoMin, SiPoMin) self.tabs.setSizePolicy(SiPoMin, SiPoMin) self.tabs.setTabIcon(0, IconPth(32, 'General Setting')) self.tabs.setTabIcon(1, IconPth(32, 'Unit Setting')) self.tabs.setTabIcon(2, IconPth(32, 'Debug')) # self.tabs.setTabIcon(3, IconPth(32, 'Quick Setting')) self.tabs.setTabPosition(QTabWidget.South) self.tabs.setMovable(True)
def __init__(self, parent=None): super(NoteReminder, self).__init__(parent) self.setWindowIcon(IconPth(32, 'NoteReminder')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(Calendar, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Calendar')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(NodeGraph, self).__init__(parent) self.logger = SetLogger(self) self.mtd = {} self.Nodes = [] self.setWindowIcon(IconPth(32, 'NodeGraph')) self.menuBar = MenuBar(self) self.view = View() self.sceneView = Scene(self) # Setup scene. self.view.setScene(self.sceneView) self.view.setRenderHint(ANTIALIAS) self.view.setViewportUpdateMode(UPDATE_FULLVIEW) sceneWidth = 1000 sceneHeight = 500 self.sceneView.nodeMoved.connect( self.view.nodeMoved) # Connect scene node moved signal self.sceneView.selectionChanged.connect( self.view._returnSelection) # Connect signals. self.sceneView.setSceneRect(0, 0, sceneWidth, sceneHeight) node1 = self.createNode({'name': 'Node1', 'pos': [0, 0]}) node2 = self.createNode({'name': 'Node2', 'pos': [20, 20]}) self.layout = QGridLayout() self.layout.addWidget(self.menuBar, 0, 0, 1, 1) self.layout.addWidget(self.view, 1, 0, 1, 1) self.setLayout(self.layout) self.resize(1000, 500) self.mtd['objName'] = '{0} {1}'.format(self.key, str(1)) self.mtd['unix'] = getUnix() self.mtd['nodes'] = self.view.getNodes()
def __init__(self, parent=None): super(About, self).__init__(parent) self.setWindowIcon(IconPth(32, 'About')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(800, 600)
def __init__(self, parent=None): super(TextEditor, self).__init__(parent) self.logger = SetLogger(self) self.setWindowIcon(IconPth(32, 'TextEditor')) self.layout = QHBoxLayout() self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(EnglishDictionary, self).__init__(parent) self.setWindowIcon(IconPth(32, "EnglishDictionary")) self.layout = QGridLayout(self) self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(CodeConduct, self).__init__(parent) self.setWindowIcon(IconPth(32, 'CodeConduct')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(650, 800)
def __init__(self, parent=None): super(Reference, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Reference')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(450, 400)
def __init__(self, parent=None): super(LicenceMIT, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Licence')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(500, 400)
def __init__(self, parent=None): super(FindFiles, self).__init__(parent) self.setWindowIcon(IconPth(32, "FindFiles")) central_widget = QWidget(self) self.layout = QGridLayout(self) central_widget.setLayout(self.layout) self.buildUI()
def __init__(self, parent=None): super(UserSetting, self).__init__(parent) self.setWindowIcon(IconPth(32, "UserSetting")) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.reg = PObj(self)
def __init__(self, parent=None): super(Contributing, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Contributing')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(350, 400)
def __init__(self, parent=None): super(Calculator, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Calculator')) self.NumDigitButtons = 10 self.layout = QGridLayout(self) self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(Version, self).__init__(parent) self.setWindowIcon(IconPth(32, 'Version')) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.resize(450, 150)
def __init__(self, url='vnexpress.net', parent=None): super(PLMBrowser, self).__init__(parent) self.logger = SetLogger(self) self.setWindowIcon(IconPth(32, 'PLMBrowser')) self.url = url self.layout = QVBoxLayout() self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(SignIn, self).__init__(parent) self.setWindowIcon(IconPth(32, "SignIn")) self.setFixedSize(400, 300) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout)
def __init__(self, parent=None): super(SignUp, self).__init__(parent) self.logger = SetLogger(self) self.setWindowIcon(IconPth(32, "SignUp")) self.resize(450, 900) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.reg = PObj(self)
def buildUI(self): viewer = ImageInitUI(self._key) resizeSig = viewer.resizeSig resizeSig.connect(self.resizeUI) self.title = viewer.title self.setWindowTitle("Image Viewer: " + str(self.title)) self.setWindowIcon(IconPth(32, "ImageViewer")) self.layout.addWidget(viewer)
def __init__(self, parent=None): super(Screenshot, self).__init__(parent) self.setWindowIcon(IconPth(32, "Screenshot")) self.resize(960, 540) self.layout = QGridLayout() self.buildUI() self.setLayout(self.layout) self.shootScreen() self.delaySpinBox.setValue(5)
def procedural(self): for key, value in self.preset.items(): if key == 'txt': self.setText(value) elif key == 'tt': self.setToolTip(value) elif key == 'cl': self.clicked.connect(value) elif key == 'emit1': self.clicked.connect(partial(value[0], value[1])) elif key == 'emit2': self.clicked.connect( partial(value[0], value[1][0], value[1][1])) elif key == 'icon': self.setIcon(IconPth(32, value)) elif key == 'icon24': self.setIcon(IconPth(24, value)) elif key == 'fix': self.setFixedSize(value) elif key == 'ics': self.setIconSize(value) elif key == 'stt': self.setToolTip(value)
def procedural(self): for key, value in self.preset.items(): if key == 'icon': self.setIcon(IconPth(32, value)) elif key == 'txt': self.setText(value) elif key == 'trg': self.triggered.connect(value) elif key == 'shortcut': self.setShortcut(value) elif key == 'checkable': self.setChecked(value) elif key == 'enabled': self.setDisabled(value) elif key == 'stt': self.setStatusTip(value) # ------------------------------------------------------------------------------------------------------------- # Created by panda on 18/07/2018 - 8:42 AM # © 2017 - 2018 DAMGteam. All rights reserved