Gnumed.wxGladeWidgets.wxgOrganizationManagerDlg

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgOrganizationManagerDlg

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgOrganizationManagerDlg.wxg"
     4
     5  import wx
     6
     7  # begin wxGlade: extracode
     8  # end wxGlade
     9
    10
    11
    12 -class wxgOrganizationManagerDlg(wx.Dialog):
    13 -    def __init__(self, *args, **kwds):
    14
    15          from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationsManagerPnl
    16          from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitsManagerPnl
    17          from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitAddressPnl
    18          from Gnumed.wxpython.gmContactWidgets import cCommChannelsManagerPnl
    19
    20          # begin wxGlade: wxgOrganizationManagerDlg.__init__
    21          kwds["style"] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX|wx.MINIMIZE_BOX|wx.THICK_FRAME
    22          wx.Dialog.__init__(self, *args, **kwds)
    23          self._PNL_orgs = cOrganizationsManagerPnl(self, -1)
    24          self._PNL_units = cOrgUnitsManagerPnl(self, -1)
    25          self._PNL_address = cOrgUnitAddressPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    26          self._PNL_comms = cCommChannelsManagerPnl(self, -1, style=wx.NO_BORDER|wx.TAB_TRAVERSAL)
    27
    28          self.__set_properties()
    29          self.__do_layout()
    30          # end wxGlade
    31
    32 -    def __set_properties(self):
    33          # begin wxGlade: wxgOrganizationManagerDlg.__set_properties
    34          self.SetTitle(_("Managing Organizations and their units."))
    35          self.SetSize((875, 519))
    36          # end wxGlade
    37
    38 -    def __do_layout(self):
    39          # begin wxGlade: wxgOrganizationManagerDlg.__do_layout
    40          __szr_main = wx.BoxSizer(wx.VERTICAL)
    41          __szr_units = wx.BoxSizer(wx.HORIZONTAL)
    42          __szr_unit_details = wx.BoxSizer(wx.VERTICAL)
    43          __szr_main.Add(self._PNL_orgs, 1, wx.ALL|wx.EXPAND, 5)
    44          __szr_units.Add(self._PNL_units, 2, wx.LEFT|wx.TOP|wx.BOTTOM|wx.EXPAND, 5)
    45          __lbl_pusher = wx.StaticText(self, -1, "")
    46          __szr_unit_details.Add(__lbl_pusher, 0, wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 3)
    47          __hline_middle = wx.StaticLine(self, -1)
    48          __szr_unit_details.Add(__hline_middle, 0, wx.BOTTOM|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 20)
    49          __szr_unit_details.Add(self._PNL_address, 1, wx.LEFT|wx.EXPAND, 5)
    50          __szr_unit_details.Add(self._PNL_comms, 2, wx.LEFT|wx.EXPAND, 1)
    51          __szr_units.Add(__szr_unit_details, 3, wx.RIGHT|wx.TOP|wx.BOTTOM|wx.EXPAND, 5)
    52          __szr_main.Add(__szr_units, 1, wx.EXPAND, 0)
    53          self.SetSizer(__szr_main)
    54          self.Layout()
    55          # end wxGlade
    56
    57  # end of class wxgOrganizationManagerDlg
    58
    59
    60  if __name__ == "__main__":
    61      import gettext
    62      gettext.install("app") # replace with the appropriate catalog name
    63
    64      app = wx.PySimpleApp(0)
    65      wx.InitAllImageHandlers()
    66      dlg = (None, -1, "")
    67      app.SetTopWindow(dlg)
    68      dlg.Show()
    69      app.MainLoop()
    70