[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] Stuck newbie
From: Johannes Graumann <johannes_graumann () web ! de>
Date: 2006-10-09 7:41:59
Message-ID: 1244441810 () web ! de
[Download RAW message or body]
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
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic