[PyKDE] Stuck newbie
Johannes Graumann
johannes_graumann at web.de
Mon Oct 9 08:41:59 BST 2006
Hello,
Can somebody please give me a hint why the amateurish code below segfaults? What am I doing wrong and how to fix it?
Thanks for any help,
Joh
from PyQt4 import QtGui, QtCore, uic
import sys
class RepositoryTree:
def __init__(self,Tree,Root):
self = Tree
self.model = QtGui.QDirModel()
self.setModel(self.model)
self.setRootIndex(self.model.index(Root))
class ElNotes:
def __init__(self,args):
self = QtGui.QApplication(args)
self.maindialog = uic.loadUi("ElNotes_GUI.ui")
self.maindialog._connectSlots()
self.maindialog.show()
self.exec_()
def _connectSlots(self):
self.maindialog.connect(self.actionQuit_Ctr_Q,SIGNAL("clicked()"),self.slotQuit_Ctr_Qclicked)
# def slotQuit_Ctr_QClicked(self):
# self.closeEvent()
if __name__=="__main__":
ElNotes = ElNotes(sys.argv)
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
More information about the PyQt
mailing list