E
errmaker
hi ! iam newbie on python.
how i can make form1 visible ? form just crated by pyqt
class Form1(QMainWindow):
def __init__(self,parent = None,name = None,fl = 0):
QMainWindow.__init__(self,parent,name,fl)
self.statusBar()
............
if self.MenuBar.findItem(1):
self.MenuBar.findItem(1).setText(self.__tr("&File"))
if self.MenuBar.findItem(2):
self.MenuBar.findItem(2).setText(self.__tr("&Edit"))
if self.MenuBar.findItem(3):
self.MenuBar.findItem(3).setText(self.__tr("&Help"))
def fileNew(self):
print "Form1.fileNew(): Not implemented yet"
......
def __tr(self,s,c = None):
return qApp.translate("Form1",s,c)
how i can make form1 visible ? form just crated by pyqt
class Form1(QMainWindow):
def __init__(self,parent = None,name = None,fl = 0):
QMainWindow.__init__(self,parent,name,fl)
self.statusBar()
............
if self.MenuBar.findItem(1):
self.MenuBar.findItem(1).setText(self.__tr("&File"))
if self.MenuBar.findItem(2):
self.MenuBar.findItem(2).setText(self.__tr("&Edit"))
if self.MenuBar.findItem(3):
self.MenuBar.findItem(3).setText(self.__tr("&Help"))
def fileNew(self):
print "Form1.fileNew(): Not implemented yet"
......
def __tr(self,s,c = None):
return qApp.translate("Form1",s,c)