[PyKDE] Another question, crash
    Jim Bublitz 
    jbublitz at nwinternet.com
       
    Wed Jun 30 01:58:00 BST 2004
    
    
  
On Tuesday 29 June 2004 07:09, Ian Monroe wrote:
> And for the SettingsDialog call:
> class SettingsDialog(KConfigDialog):
> 	def __init__ (self, parent, name, config, *args):
> 		apply (KConfigDialog.__init__, (self,parent,name,config) + args)
>
> 		print isinstance(config,KConfigSkeleton)
> 		self.addPage(ConfigForm(config), "GMail", "gmail", "KNewGmail
> Settings")
Change the last line to:
    self.addPage(ConfigForm(config, self), "GMail", "gmail", 
                       "KNewGmail Settings")
and it should work (works here).
The failure to display the widgets when I could get the dialog to display 
should have been the tipoff. The page widget needs a parent.
Jim
    
    
More information about the PyQt
mailing list