LoginDialog.py
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Tue Sep 27 12:15:56 2011
import wx
# begin wxGlade: dependencies
# end wxGlade
# begin wxGlade: extracode
# end wxGlade
"""aktualnie nieużywane! """
class LoginDialog(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: LoginDialog.__init__
kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.THICK_FRAME
wx.Dialog.__init__(self, *args, **kwds)
self.label_1 = wx.StaticText(self, -1, "login: ")
self.login_ctrl = wx.TextCtrl(self, -1, "")
self.label_3 = wx.StaticText(self, -1, "password: ")
self.passwd_ctrl = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
self.save_passwd = wx.CheckBox(self, -1, "save password")
self.button_1 = wx.Button(self, wx.ID_OK, "OK")
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_BUTTON, self.on_ok, id=wx.ID_OK)
# end wxGlade
def __set_properties(self):
# begin wxGlade: LoginDialog.__set_properties
self.SetTitle("login")
self.button_1.SetMinSize((85, 32))
# end wxGlade
def __do_layout(self):
# begin wxGlade: LoginDialog.__do_layout
sizer_4 = wx.BoxSizer(wx.VERTICAL)
grid_sizer_1 = wx.GridSizer(2, 2, 0, 0)
grid_sizer_1.Add(self.label_1, 0, wx.ALIGN_CENTER_VERTICAL, 0)
grid_sizer_1.Add(self.login_ctrl, 0, 0, 0)
grid_sizer_1.Add(self.label_3, 0, wx.ALIGN_CENTER_VERTICAL, 0)
grid_sizer_1.Add(self.passwd_ctrl, 0, 0, 0)
sizer_4.Add(grid_sizer_1, 0, 0, 0)
sizer_4.Add(self.save_passwd, 0, 0, 0)
sizer_4.Add(self.button_1, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
self.SetSizer(sizer_4)
sizer_4.Fit(self)
self.Layout()
# end wxGlade
def on_ok(self, event): # wxGlade: LoginDialog.<event_handler>
print "Event handler `on_ok' not implemented!"
event.Skip()
# end of class LoginDialog