Gnumed.wxGladeWidgets.wxgPersonContactsManagerPnl

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

# Source Code for Module Gnumed.wxGladeWidgets.wxgPersonContactsManagerPnl

     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 wxgPersonContactsManagerPnl(wx.ScrolledWindow):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgPersonContactsManagerPnl.__init__
    19                  kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
    20                  wx.ScrolledWindow.__init__(self, *args, **kwds)
    21                  from Gnumed.wxpython.gmPersonContactWidgets import cPersonAddressesManagerPnl
    22                  self._PNL_addresses = cPersonAddressesManagerPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
    23                  from Gnumed.wxpython.gmContactWidgets import cCommChannelsManagerPnl
    24                  self._PNL_comms = cCommChannelsManagerPnl(self, wx.ID_ANY, style=wx.BORDER_NONE | wx.TAB_TRAVERSAL)
    25
    26                  self.__set_properties()
    27                  self.__do_layout()
    28                  # end wxGlade
    29
    30 -        def __set_properties(self):
    31                  # begin wxGlade: wxgPersonContactsManagerPnl.__set_properties
    32                  self.SetFocus()
    33                  self.SetScrollRate(10, 10)
    34                  # end wxGlade
    35
    36 -        def __do_layout(self):
    37                  # begin wxGlade: wxgPersonContactsManagerPnl.__do_layout
    38                  __szr_main = wx.BoxSizer(wx.VERTICAL)
    39                  __szr_main.Add(self._PNL_addresses, 1, wx.ALL | wx.EXPAND, 5)
    40                  __szr_main.Add(self._PNL_comms, 1, wx.ALL | wx.EXPAND, 5)
    41                  self.SetSizer(__szr_main)
    42                  __szr_main.Fit(self)
    43                  self.Layout()
    44                  # end wxGlade
    45
    46  # end of class wxgPersonContactsManagerPnl
    47