OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [py2exe_wx_nis/] [programa.py] - Blame information for rev 391

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 172 maximiq
#!/usr/bin/env python
2
# -*- coding: CP1252 -*-
3
#
4
# generated by wxGlade 0.6.8 (standalone edition) on Sat Mar 22 20:34:38 2014
5
#
6
 
7
import wx
8
 
9
# begin wxGlade: dependencies
10
import gettext
11
# end wxGlade
12
 
13
# begin wxGlade: extracode
14
# end wxGlade
15
 
16
 
17
class MyFrame(wx.Frame):
18
    def __init__(self, *args, **kwds):
19
        # begin wxGlade: MyFrame.__init__
20
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
21
        wx.Frame.__init__(self, *args, **kwds)
22
        self.label_1 = wx.StaticText(self, wx.ID_ANY, _("Hola mundo !!!"))
23
 
24
        self.__set_properties()
25
        self.__do_layout()
26
        # end wxGlade
27
 
28
    def __set_properties(self):
29
        # begin wxGlade: MyFrame.__set_properties
30
        self.SetTitle(_("frame_1"))
31
        self.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE))
32
        # end wxGlade
33
 
34
    def __do_layout(self):
35
        # begin wxGlade: MyFrame.__do_layout
36
        sizer_1 = wx.BoxSizer(wx.VERTICAL)
37
        sizer_1.Add(self.label_1, 0, wx.ALL, 20)
38
        self.SetSizer(sizer_1)
39
        sizer_1.Fit(self)
40
        self.Layout()
41
        # end wxGlade
42
 
43
# end of class MyFrame
44
if __name__ == "__main__":
45
    gettext.install("app") # replace with the appropriate catalog name
46
 
47
    app = wx.App(False)
48
    #wx.InitAllImageHandlers()
49
    frame_1 = MyFrame(None, wx.ID_ANY, "")
50
    app.SetTopWindow(frame_1)
51
    frame_1.Show()
52
    app.MainLoop()

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.