def __init__(self): QtGui.QDialog.__init__(self) uic.loadUi(util.buildResPath('blipper.ui'), self) # Load window UI self.pushButtonGo.triggered.connect(self.go()) print "__init__"
def __init__(self, filename=None): QtGui.QMainWindow.__init__(self) uic.loadUi(util.buildResPath('mangle/ui/book.ui'), self) self.listWidgetFiles.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.actionFileNew.triggered.connect(self.onFileNew) self.actionFileOpen.triggered.connect(self.onFileOpen) self.actionFileSave.triggered.connect(self.onFileSave) self.actionFileSaveAs.triggered.connect(self.onFileSaveAs) self.actionBookOptions.triggered.connect(self.onBookOptions) self.actionBookAddFiles.triggered.connect(self.onBookAddFiles) self.actionBookAddDirectory.triggered.connect(self.onBookAddDirectory) self.actionBookShiftUp.triggered.connect(self.onBookShiftUp) self.actionBookShiftDown.triggered.connect(self.onBookShiftDown) self.actionBookRemove.triggered.connect(self.onBookRemove) self.actionBookExport.triggered.connect(self.onBookExport) self.actionHelpAbout.triggered.connect(self.onHelpAbout) self.actionHelpHomepage.triggered.connect(self.onHelpHomepage) self.listWidgetFiles.customContextMenuRequested.connect( self.onFilesContextMenu) self.listWidgetFiles.itemDoubleClicked.connect(self.onFilesDoubleClick) self.book = Book() if filename is not None: self.loadBook(filename)
def __init__(self, parent, book): QtGui.QDialog.__init__(self, parent) uic.loadUi(util.buildResPath("mangle/ui/options.ui"), self) self.accepted.connect(self.onAccept) self.book = book self.moveOptionsToDialog()
def __init__(self, parent, book): QtGui.QDialog.__init__(self, parent) uic.loadUi(util.buildResPath('mangle/ui/options.ui'), self) self.accepted.connect(self.onAccept) self.book = book self.moveOptionsToDialog()
def __init__(self): QtGui.QMainWindow.__init__(self) uic.loadUi(util.buildResPath('ui/blipper.ui'), self) # Load window UI self.actionGo.triggered.connect(self.onGoClick) self.actionUpdate_Process_List.triggered.connect(self.populateCurrentProcessesList) self.listWidgetProcesses.itemDoubleClicked.connect(self.onProcessDoubleClick) self.populateCurrentProcessesList()
def __init__(self, filename=None): QtGui.QMainWindow.__init__(self) uic.loadUi(util.buildResPath('ui/book.ui'), self) self.listWidgetFiles.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.actionFileNew.triggered.connect(self.onFileNew) self.actionFileOpen.triggered.connect(self.onFileOpen) self.actionFileSave.triggered.connect(self.onFileSave) self.actionFileSaveAs.triggered.connect(self.onFileSaveAs) self.actionBookOptions.triggered.connect(self.onBookOptions) self.actionBookAddFiles.triggered.connect(self.onBookAddFiles) self.actionBookAddDirectory.triggered.connect(self.onBookAddDirectory) self.actionBookShiftUp.triggered.connect(self.onBookShiftUp) self.actionBookShiftDown.triggered.connect(self.onBookShiftDown) self.actionBookRemove.triggered.connect(self.onBookRemove) self.actionBookExport.triggered.connect(self.onBookExport) self.actionHelpAbout.triggered.connect(self.onHelpAbout) self.actionHelpHomepage.triggered.connect(self.onHelpHomepage) self.listWidgetFiles.customContextMenuRequested.connect(self.onFilesContextMenu) self.listWidgetFiles.itemDoubleClicked.connect(self.onFilesDoubleClick) self.book = Book() if filename is not None: self.loadBook(filename)
def __init__(self, parent): QtGui.QDialog.__init__(self, parent) uic.loadUi(util.buildResPath('mangle/ui/about.ui'), self)
''' Created on Feb 21, 2013 @author: Kyle Geib ''' import util # utility module import sys from time import sleep # GUI system from PyQt4 import QtGui, QtCore, QtXml, uic # .NET API calls support provided by Python for .NET sys.path.append(util.buildResPath('PyNET')) import clr from System import Diagnostics from System import InvalidOperationException class MainWindowMenu(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) uic.loadUi(util.buildResPath('ui/blipper.ui'), self) # Load window UI self.actionGo.triggered.connect(self.onGoClick) self.actionUpdate_Process_List.triggered.connect(self.populateCurrentProcessesList) self.listWidgetProcesses.itemDoubleClicked.connect(self.onProcessDoubleClick)