def __init__(self, *args, **kwds):
        self.status = {
            Messages.CONFIG_CLOUD_SEEWEB: (ENABLED, _img('cloud/ESeeweb.png')),
            Messages.CONFIG_CLOUD_AMAZON: (DISABLED,_img('cloud/DAmazonS3.png')),
            Messages.CONFIG_CLOUD_AZURE:  (DISABLED,_img('cloud/DAzure.png'))
        }

        super(CloudComboBox, self).__init__(*args, **kwds)
        self.Bind(wx.EVT_COMBOBOX, self.OnChange)
        for cloud in CLOUD_COMBOBOX:
            status = ''
            if not self.status[cloud][0]:
                status = '%s' % Messages.CONFIG_CLOUD_DISABLED_LABEL
            label = Messages.CONFIG_CLOUD_LABEL % {'status': status,
                                                   'cloud': cloud}

            self.Append(label, self.status[cloud][1])
        self.SetValue(CLOUD_COMBOBOX[0])
Esempio n. 2
0
    def __init__(self, *args, **kwds):
        self.status = {
            Messages.CONFIG_CLOUD_SEEWEB: (ENABLED, _img('cloud/ESeeweb.png')),
            Messages.CONFIG_CLOUD_AMAZON:
            (DISABLED, _img('cloud/DAmazonS3.png')),
            Messages.CONFIG_CLOUD_AZURE: (DISABLED, _img('cloud/DAzure.png'))
        }

        super(CloudComboBox, self).__init__(*args, **kwds)
        self.Bind(wx.EVT_COMBOBOX, self.OnChange)
        for cloud in CLOUD_COMBOBOX:
            status = ''
            if not self.status[cloud][0]:
                status = '%s' % Messages.CONFIG_CLOUD_DISABLED_LABEL
            label = Messages.CONFIG_CLOUD_LABEL % {
                'status': status,
                'cloud': cloud
            }

            self.Append(label, self.status[cloud][1])
        self.SetValue(CLOUD_COMBOBOX[0])
Esempio n. 3
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyMessageDialog.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
        wx.Dialog.__init__(self, *args, **kwds)
        #        self.bitmap_1 = wx.EmptyBitmap(1,1)
        self.message_label = wx.StaticText(self, -1, "Standard Message Dialog Message")

        # end wxGlade
        self.bitmap_1 = wx.StaticBitmap(self, -1, _img("message_dialog/Warning.png"))

        self.__set_properties()
        self.__do_layout()
        self.buttonSizer = None
Esempio n. 4
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyMessageDialog.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
        wx.Dialog.__init__(self, *args, **kwds)
        #        self.bitmap_1 = wx.EmptyBitmap(1,1)
        self.message_label = wx.StaticText(self, -1,
                                           "Standard Message Dialog Message")

        # end wxGlade
        self.bitmap_1 = wx.StaticBitmap(self, -1, _img("Warning.png"))

        self.__set_properties()
        self.__do_layout()
        self.buttonSizer = None