from PyQt4 import uic
from PyQt4.QtCore import *
from PyQt4.QtGui import *
(Ui_padlockgui,
QMainWindow) = uic.
loadUiType(os.
path.
join(os.
path.
dirname(os.
path.
abspath(__file__
)),
"data",
"padlockgui.ui")) (Ui_helpwindow,
QWidget) = uic.
loadUiType(os.
path.
join(os.
path.
dirname(os.
path.
abspath(__file__
)),
"data",
"helpwindow.ui"))
class helpwindow
(QWidget,Ui_helpwindow
): """helpwindow inherits QWidget"""
def __init__(self):
self.setupUi(self)
def __del__ (self):
self = None
"""padlockgui inherits QMainWindow"""
def __init__ (self, parent = None):
self.ui = Ui_padlockgui()
self.ui.setupUi(self)
self.connect(self.ui.helpButton, SIGNAL('clicked()'), SLOT('helpbutton()'))
def __del__ (self):
self.ui = None
@pyqtSlot()
def helpbutton(self):
self.hw = helpwindow()
self.hw.setWindowTitle('Wallet Padlock Help')
self.hw.show()
from PyQt4 import uic
from PyQt4.QtCore import *
from PyQt4.QtGui import *
(Ui_padlockgui, QMainWindow) = uic.loadUiType(os.path.join(os.path.dirname(os.path.abspath(__file__)),"data","padlockgui.ui"))
(Ui_helpwindow, QWidget) = uic.loadUiType(os.path.join(os.path.dirname(os.path.abspath(__file__)),"data","helpwindow.ui"))
class helpwindow(QWidget,Ui_helpwindow):
"""helpwindow inherits QWidget"""
def __init__(self):
QWidget.__init__(self)
self.setupUi(self)
def __del__ (self):
self = None
class padlockgui (QMainWindow):
"""padlockgui inherits QMainWindow"""
def __init__ (self, parent = None):
QMainWindow.__init__(self, parent)
self.ui = Ui_padlockgui()
self.ui.setupUi(self)
self.connect(self.ui.helpButton, SIGNAL('clicked()'), SLOT('helpbutton()'))
def __del__ (self):
self.ui = None
@pyqtSlot()
def helpbutton(self):
self.hw = helpwindow()
self.hw.setWindowTitle('Wallet Padlock Help')
self.hw.show()
To copy to clipboard, switch view to plain text mode
Bookmarks