Gnumed.wxGladeWidgets.wxgOrganizationManagerDlg

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgOrganizationManagerDlg

     1  # -*- coding: UTF-8 -*-
     2  #
     3  # generated by wxGlade
     4  #
     5
     6  import wx
     7
     8  # begin wxGlade: dependencies
     9  import gettext
    10  # end wxGlade
    11
    12  # begin wxGlade: extracode
    13  # end wxGlade
    14
    15
    16 -class wxgOrganizationManagerDlg(wx.Dialog):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgOrganizationManagerDlg.__init__
    19                  kwds["style"] = kwds.get("style", 0) | wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER
    20                  wx.Dialog.__init__(self, *args, **kwds)
    21                  self.SetSize((875, 519))
    22                  from Gnumed.wxpython.gmOrganizationWidgets import cOrganizationsManagerPnl
    23                  self._PNL_orgs = cOrganizationsManagerPnl(self, wx.ID_ANY)
    24                  from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitsManagerPnl
    25                  self._PNL_units = cOrgUnitsManagerPnl(self, wx.ID_ANY)
    26                  from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitAddressPnl
    27                  self._PNL_address = cOrgUnitAddressPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
    28                  from Gnumed.wxpython.gmContactWidgets import cCommChannelsManagerPnl
    29                  self._PNL_comms = cCommChannelsManagerPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
    30                  from Gnumed.wxpython.gmOrganizationWidgets import cOrgUnitIDsMgrPnl
    31                  self._PNL_ids = cOrgUnitIDsMgrPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
    32
    33                  self.__set_properties()
    34                  self.__do_layout()
    35                  # end wxGlade
    36
    37 -        def __set_properties(self):
    38                  # begin wxGlade: wxgOrganizationManagerDlg.__set_properties
    39                  self.SetTitle(_("Managing Organizations and their units."))
    40                  self.SetSize((875, 519))
    41                  # end wxGlade
    42
    43 -        def __do_layout(self):
    44                  # begin wxGlade: wxgOrganizationManagerDlg.__do_layout
    45                  __szr_main = wx.BoxSizer(wx.HORIZONTAL)
    46                  __szr_unit_details = wx.BoxSizer(wx.VERTICAL)
    47                  __szr_orgs_units = wx.BoxSizer(wx.VERTICAL)
    48                  __szr_orgs_units.Add(self._PNL_orgs, 2, 0, 5)
    49                  __szr_orgs_units.Add(self._PNL_units, 1, 0, 5)
    50                  __szr_main.Add(__szr_orgs_units, 1, wx.ALL, 5)
    51                  __szr_unit_details.Add(self._PNL_address, 2, wx.EXPAND | wx.LEFT, 5)
    52                  __szr_unit_details.Add(self._PNL_comms, 3, wx.EXPAND | wx.LEFT, 1)
    53                  __szr_unit_details.Add(self._PNL_ids, 3, wx.EXPAND | wx.LEFT, 1)
    54                  __szr_main.Add(__szr_unit_details, 3, wx.BOTTOM | wx.RIGHT | wx.TOP, 5)
    55                  self.SetSizer(__szr_main)
    56                  self.Layout()
    57                  # end wxGlade
    58
    59  # end of class wxgOrganizationManagerDlg
    60