Wanted to point this out as well. The way you are calling super() needs a 
slight adjustment.

#Original:
class Ui_MainWindow(baseUIWidget, baseUIClass):
    def __init__(self,parent=None):
        super(baseUIWidget, self).__init__(parent)

This is calling the super class of baseUIWidget, which means you aren't 
initializing the super of Ui_MainWindow, but rather the super class of 
baseUIWidget, which could cause issues. 
Example:
If baseUIWidget is a QDialog, then you are actually initializing from a QWidget

#Adjustment
class Ui_MainWindow(baseUIWidget, baseUIClass):
    def __init__(self,parent=None):
        super(Ui_MainWindow, self).__init__(parent)

You call super on your actual classname, and super will determine the proper 
superclass to return.



On Nov 9, 2012, at 7:32 AM, Panupat Chongstitwattana wrote:

> grr... forgot parentesis
> 
> import daz
> reload(daz)
> 
> daz.launch()
> 
> 
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to