def __init__(self, parent, message, caption='Error',
              style=(wx.OK | wx.ICON_ERROR)):
     wx.MessageDialog.__init__(self, parent, message, caption,
                               style=style)
     CuteDialog.__init__(self, skip_wx_init=True)
     self.ExtraStyle &= ~wx.FRAME_EX_CONTEXTHELP
     
 def __init__(self,
              parent,
              message,
              caption='Error',
              style=(wx.OK | wx.ICON_ERROR)):
     wx.MessageDialog.__init__(self, parent, message, caption, style=style)
     CuteDialog.__init__(self, skip_wx_init=True)
     self.ExtraStyle &= ~wx.FRAME_EX_CONTEXTHELP
    def __init__(self,
                 parent,
                 getter,
                 setter,
                 emitter,
                 lightness=1,
                 saturation=1,
                 id=-1,
                 title='Select hue',
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.DEFAULT_DIALOG_STYLE,
                 name=wx.DialogNameStr):

        CuteDialog.__init__(self, parent, id, title, pos, size, style, name)

        ### Defining attributes: ##############################################
        #                                                                     #
        self.getter = getter
        '''Getter function for getting the current hue.'''

        self.setter = setter
        '''Setter function for setting a new hue.'''

        assert isinstance(emitter, Emitter)
        self.emitter = emitter
        '''Optional emitter to emit to when changing hue. May be `None`.'''

        self.lightness = lightness
        '''The constant lightness of the colors that we're displaying.'''

        self.saturation = saturation
        '''The constant saturation of the colors that we're displaying.'''

        self.hue = getter()
        '''The current hue.'''

        self.old_hue = self.hue
        '''The hue as it was before changing, when the dialog was created.'''

        self.old_hls = (self.old_hue, lightness, saturation)
        '''
        The hls color as it was before changing, when the dialog was created.
        '''
        #                                                                     #
        ### Finished defining attributes. #####################################

        self.__init_build()

        self.emitter.add_output(self.update)
    def __init__(self, parent, getter, setter, emitter, lightness=1,
                 saturation=1, id=-1, title='Select hue',
                 pos=wx.DefaultPosition, size=wx.DefaultSize,
                 style=wx.DEFAULT_DIALOG_STYLE, name=wx.DialogNameStr):

        
        CuteDialog.__init__(self, parent, id, title, pos, size, style, name)
        
        ### Defining attributes: ##############################################
        #                                                                     #
        self.getter = getter
        '''Getter function for getting the current hue.'''
        
        self.setter = setter
        '''Setter function for setting a new hue.'''
        
        assert isinstance(emitter, Emitter)
        self.emitter = emitter
        '''Optional emitter to emit to when changing hue. May be `None`.'''
        
        self.lightness = lightness
        '''The constant lightness of the colors that we're displaying.'''

        self.saturation = saturation
        '''The constant saturation of the colors that we're displaying.'''
        
        self.hue = getter()
        '''The current hue.'''
        
        self.old_hue = self.hue
        '''The hue as it was before changing, when the dialog was created.'''
        
        self.old_hls = (self.old_hue, lightness, saturation)
        '''
        The hls color as it was before changing, when the dialog was created.
        '''
        #                                                                     #
        ### Finished defining attributes. #####################################
        
        self.__init_build()
        
        self.emitter.add_output(self.update)
 def __init__(self, parent, message, caption='Message', style=wx.OK):
     wx.MessageDialog.__init__(self, parent, message, caption, style=style)
     CuteDialog.__init__(self, skip_wx_init=True)
     self.ExtraStyle &= ~wx.FRAME_EX_CONTEXTHELP
 def __init__(self, parent, message, caption='Message', style=wx.OK):
     wx.MessageDialog.__init__(self, parent, message, caption,
                               style=style)
     CuteDialog.__init__(self, skip_wx_init=True)
     self.ExtraStyle &= ~wx.FRAME_EX_CONTEXTHELP