Пример #1
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: Shutdown.__init__
        kwds["style"] = kwds.get(
            "style", 0
        ) | wx.CAPTION | wx.CLIP_CHILDREN | wx.FRAME_TOOL_WINDOW | wx.RESIZE_BORDER | wx.STAY_ON_TOP
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((413, 573))
        self.text_shutdown = wx.TextCtrl(self,
                                         wx.ID_ANY,
                                         "",
                                         style=wx.TE_MULTILINE
                                         | wx.TE_READONLY)
        self.button_stop = wx.BitmapButton(self, wx.ID_ANY,
                                           icons8_stop_sign_50.GetBitmap())
        self.button_reload = wx.BitmapButton(self, wx.ID_ANY,
                                             icon_meerk40t.GetBitmap())

        self.__set_properties()
        self.__do_layout()

        self.Bind(wx.EVT_BUTTON, self.on_button_stop, self.button_stop)
        self.Bind(wx.EVT_BUTTON, self.on_button_reload, self.button_reload)
        # end wxGlade

        self.Bind(wx.EVT_CLOSE, self.on_close, self)
        self.kernel = None
        self.autoclose = True
Пример #2
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: About.__init__
        kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_FRAME_STYLE | wx.FRAME_TOOL_WINDOW | wx.STAY_ON_TOP
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((699, 442))
        self.bitmap_button_1 = wx.BitmapButton(self, wx.ID_ANY, icon_meerk40t.GetBitmap())

        self.__set_properties()
        self.__do_layout()
        # end wxGlade
        self.kernel = None
        self.Bind(wx.EVT_CLOSE, self.on_close, self)
Пример #3
0
    def __init__(self, parent, *args, **kwds):
        # begin wxGlade: About.__init__
        wx.Frame.__init__(self,
                          parent,
                          -1,
                          "",
                          style=wx.DEFAULT_FRAME_STYLE
                          | wx.FRAME_FLOAT_ON_PARENT | wx.TAB_TRAVERSAL)
        Module.__init__(self)
        self.SetSize((699, 442))
        self.bitmap_button_1 = wx.BitmapButton(self, wx.ID_ANY,
                                               icon_meerk40t.GetBitmap())

        self.__set_properties()
        self.__do_layout()
        # end wxGlade
        self.Bind(wx.EVT_CLOSE, self.on_close, self)