Summary: | KOrganizer KPart crashes calling "create" from factory | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Giacomo Lacava <g.lacava> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | andresbajotierra |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Giacomo Lacava
2009-11-27 01:36:10 UTC
The code producing the crash: #!/usr/bin/env python import sys from PyKDE4.kdecore import * from PyKDE4.kdeui import * from PyKDE4.kparts import * from PyQt4.QtGui import QLabel class MainWindow (KMainWindow): def __init__ (self): KMainWindow.__init__(self) #self.resize(640, 480) factory = KLibLoader.self().factory("korganizerpart") #--- below line will crash ---# part = factory.create(self, "KOrganizerPart") self.setCentralWidget(part.topLevelWidget()) #--------------- main ------------------ if __name__ == '__main__': appName = "korganizerpart_example" catalog = "" programName = ki18n("KOrganizer Part Example") version = "1.0" description = ki18n("Example loading a KOrganizer Part") license = KAboutData.License_GPL copyright = ki18n("none") text = ki18n("none") homePage = "blog.pythonaro.com" bugEmail = "g.lacava@gmail.com" aboutData = KAboutData(appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail) KCmdLineArgs.init(sys.argv, aboutData) app = KApplication() mainWindow = MainWindow() mainWindow.show() app.exec_() this has nothing to do with kdevelop, reassigning. please take a look at where you report bugs. Yeah, sorry, I noticed it already and cloned it. Unfortunately, the bug wizard returns a generic "Language Support: Python" when you search for "python", maybe it should be made explicit that that's a KDevelop-only category. [Comment from a bug triager] The KOrganizer KPart bug is being tracked at bug 205713. Merging. Thanks *** This bug has been marked as a duplicate of bug 205713 *** |