Пример #1
0
 def set_disconnected(self):
     bitmap = IconSet16.getconnect_no_16Bitmap()
     self.togglebutton_connect.SetBitmapLabel(bitmap)
     
     bitmap = IconSet16.getconnect_creating_16Bitmap()
     self.togglebutton_connect.SetBitmapSelected(bitmap)
     
     self.togglebutton_connect.SetToggle(False)
     self.set_enabled(True)
Пример #2
0
    def set_disconnected(self):
        bitmap = IconSet16.getconnect_no_16Bitmap()
        self.togglebutton_connect.SetBitmapLabel(bitmap)

        bitmap = IconSet16.getconnect_creating_16Bitmap()
        self.togglebutton_connect.SetBitmapSelected(bitmap)

        self.togglebutton_connect.SetToggle(False)
        self.set_enabled(True)
Пример #3
0
    def __init__(self, parent):
        """ If autosave = False, there is a save-button appearing! """
        
        #TODO: Save button for autosave has to be implemented! 
        res.Portlets.Database.__init__(self, parent)
        
        self.engines_list = []
        self.drivers_list = [] 
        
        self.on_connect = None
        self.on_disconnect = None
        
        self.combobox_engine.Bind(wx.EVT_TEXT, self.on_combobox_engine_changed)
        self.combobox_odbc.Bind(wx.EVT_TEXT, self.on_combobox_odbc_changed)
        
        self.togglebutton_connect = BitmapToggleButton(self, \
            label_bitmap=IconSet16.getconnect_no_16Bitmap(), \
            selected_bitmap = IconSet16.getconnect_creating_16Bitmap()
        )

        self.togglebutton_connect.Bind(wx.EVT_BUTTON, self.on_togglebutton_connect_toggled)
        self.sizer_button.Add(self.togglebutton_connect, 1, wx.ALIGN_RIGHT|wx.ALL, 5)
Пример #4
0
    def __init__(self, parent):
        """ If autosave = False, there is a save-button appearing! """

        #TODO: Save button for autosave has to be implemented!
        res.Portlets.Database.__init__(self, parent)

        self.engines_list = []
        self.drivers_list = []

        self.on_connect = None
        self.on_disconnect = None

        self.combobox_engine.Bind(wx.EVT_TEXT, self.on_combobox_engine_changed)
        self.combobox_odbc.Bind(wx.EVT_TEXT, self.on_combobox_odbc_changed)

        self.togglebutton_connect = BitmapToggleButton(self, \
            label_bitmap=IconSet16.getconnect_no_16Bitmap(), \
            selected_bitmap = IconSet16.getconnect_creating_16Bitmap()
        )

        self.togglebutton_connect.Bind(wx.EVT_BUTTON,
                                       self.on_togglebutton_connect_toggled)
        self.sizer_button.Add(self.togglebutton_connect, 1,
                              wx.ALIGN_RIGHT | wx.ALL, 5)