#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class Frame186(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: Frame186.__init__
        kwds["style"] = kwds.get("style", 0)
        wx.Frame.__init__(self, *args, **kwds)
        self.SetSize((300, 300))
        self.SetTitle(_("frame_1"))

        # Menu Bar
        self.Bug186_Frame_menubar = wx.MenuBar()
        global myMagicMenu; myMagicMenu = wx.NewId()
        self.File = wx.Menu()
        self.File.Append(myMagicMenu, _("Magic"), "")
        self.Bug186_Frame_menubar.Append(self.File, _("File"))
        self.SetMenuBar(self.Bug186_Frame_menubar)
        # Menu Bar end

        # Tool Bar
        self.Bug186_Frame_toolbar = wx.ToolBar(self, -1)
        global myMagicTool; myMagicTool = wx.NewId()
        self.Bug186_Frame_toolbar.AddTool(myMagicTool, _("Magic"), wx.Bitmap(32, 32), wx.NullBitmap, wx.ITEM_NORMAL, _("Do a MAGIC action"), _("It's really MAGIC"))
        self.SetToolBar(self.Bug186_Frame_toolbar)
        self.Bug186_Frame_toolbar.Realize()
        # Tool Bar end

        sizer_1 = wx.BoxSizer(wx.VERTICAL)

        sizer_2 = wx.BoxSizer(wx.VERTICAL)
        sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)

        self.text_ctrl_1 = wx.TextCtrl(self, wx.ID_ANY, _("Id: automatic (default behaviour)"))
        sizer_2.Add(self.text_ctrl_1, 1, wx.ALL | wx.EXPAND, 5)

        self.text_ctrl_2 = wx.TextCtrl(self, 12123, _("Id: numeric value \"12123\""))
        sizer_2.Add(self.text_ctrl_2, 1, wx.ALL | wx.EXPAND, 5)

        self.text_ctrl_3 = wx.TextCtrl(self, wx.ID_ANY, _("Id: predefined identify: \"wxID_ANY\""))
        sizer_2.Add(self.text_ctrl_3, 1, wx.ALL | wx.EXPAND, 5)

        global myButtonId; myButtonId = wx.NewId()
        self.text_ctrl_4 = wx.TextCtrl(self, myButtonId, _("Id: variable assignment \"myButtonId=?\""))
        sizer_2.Add(self.text_ctrl_4, 1, wx.ALL | wx.EXPAND, 5)

        self.SetSizer(sizer_1)

        self.Layout()
        # end wxGlade

# end of class Frame186

class MyApp(wx.App):
    def OnInit(self):
        self.Bug186_Frame = Frame186(None, wx.ID_ANY, "")
        self.SetTopWindow(self.Bug186_Frame)
        self.Bug186_Frame.Show()
        return True

# end of class MyApp

if __name__ == "__main__":
    gettext.install("app") # replace with the appropriate catalog name

    app = MyApp(0)
    app.MainLoop()
