Gnumed.wxGladeWidgets.wxgAU_AdminLoginV01

Package Gnumed :: Package wxGladeWidgets :: Module wxgAU_AdminLoginV01 |
[frames] | no frames]

# Source Code for Module Gnumed.wxGladeWidgets.wxgAU_AdminLoginV01

     1  #!/usr/bin/env python
     2  # -*- coding: ISO-8859-1 -*-
     3  # generated by wxGlade 0.4cvs on Thu Jan 19 00:51:58 2006
     4
     5  import wx
     6
     7 -class cAU_AdminLoginDialogV01(wx.Dialog):
     8 -    def __init__(self, *args, **kwds):
     9          # begin wxGlade: cAU_AdminLoginDialogV01.__init__
    10          kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.THICK_FRAME|wx.STAY_ON_TOP
    11          wx.Dialog.__init__(self, *args, **kwds)
    12          self.label_3 = wx.StaticText(self, -1, "host")
    13          self.text_ctrl_3 = wx.TextCtrl(self, -1, "localhost")
    14          self.label_4 = wx.StaticText(self, -1, "port")
    15          self.text_ctrl_4 = wx.TextCtrl(self, -1, "")
    16          self.label_5 = wx.StaticText(self, -1, "database")
    17          self.text_ctrl_5 = wx.TextCtrl(self, -1, "gnumed_v9")
    18          self.label_1 = wx.StaticText(self, -1, "admin user")
    19          self.text_ctrl_1 = wx.TextCtrl(self, -1, "")
    20          self.label_2 = wx.StaticText(self, -1, "password")
    21          self.text_ctrl_2 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
    22          self.button_1 = wx.Button(self, -1, "ok")
    23
    24          self.__set_properties()
    25          self.__do_layout()
    26
    27          self.Bind(wx.EVT_BUTTON, self.admin_login_ok, self.button_1)
    28          # end wxGlade
    29
    30 -    def __set_properties(self):
    31          # begin wxGlade: cAU_AdminLoginDialogV01.__set_properties
    32          self.SetTitle("Admin Login Required")
    33          self.text_ctrl_1.SetFocus()
    34          # end wxGlade
    35
    36 -    def __do_layout(self):
    37          # begin wxGlade: cAU_AdminLoginDialogV01.__do_layout
    38          sizer_1 = wx.BoxSizer(wx.VERTICAL)
    39          sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
    40          grid_sizer_1 = wx.GridSizer(5, 2, 0, 0)
    41          grid_sizer_1.Add(self.label_3, 0, wx.ADJUST_MINSIZE, 0)
    42          grid_sizer_1.Add(self.text_ctrl_3, 1, wx.ADJUST_MINSIZE, 0)
    43          grid_sizer_1.Add(self.label_4, 0, wx.ADJUST_MINSIZE, 0)
    44          grid_sizer_1.Add(self.text_ctrl_4, 1, wx.ADJUST_MINSIZE, 0)
    45          grid_sizer_1.Add(self.label_5, 0, wx.ADJUST_MINSIZE, 0)
    46          grid_sizer_1.Add(self.text_ctrl_5, 1, wx.ADJUST_MINSIZE, 0)
    47          grid_sizer_1.Add(self.label_1, 0, wx.ADJUST_MINSIZE, 0)
    48          grid_sizer_1.Add(self.text_ctrl_1, 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
    49          grid_sizer_1.Add(self.label_2, 0, wx.ADJUST_MINSIZE, 0)
    50          grid_sizer_1.Add(self.text_ctrl_2, 0, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
    51          sizer_1.Add(grid_sizer_1, 1, wx.EXPAND, 0)
    52          sizer_2.Add(self.button_1, 0, wx.ADJUST_MINSIZE, 0)
    53          sizer_2.Add((20, 20), 0, wx.ADJUST_MINSIZE, 0)
    54          sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
    55          self.SetAutoLayout(True)
    56          self.SetSizer(sizer_1)
    57          sizer_1.Fit(self)
    58          sizer_1.SetSizeHints(self)
    59          self.Layout()
    60          # end wxGlade
    61
    62 -    def admin_login_ok(self, event): # wxGlade: cAU_AdminLoginDialogV01.<event_handler>
    63          print "Event handler `admin_login_ok' not implemented!"
    64          event.Skip()
    65
    66  # end of class cAU_AdminLoginDialogV01
    67