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

# Source Code for Module Gnumed.wxGladeWidgets.wxgScrolledEMRTreePnl

     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 wxgScrolledEMRTreePnl(wx.ScrolledWindow):
    17 -        def __init__(self, *args, **kwds):
    18                  # begin wxGlade: wxgScrolledEMRTreePnl.__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.gmEMRBrowser import cEMRTree
    22                  self._emr_tree = cEMRTree(self, wx.ID_ANY)
    23
    24                  self.__set_properties()
    25                  self.__do_layout()
    26                  # end wxGlade
    27
    28 -        def __set_properties(self):
    29                  # begin wxGlade: wxgScrolledEMRTreePnl.__set_properties
    30                  self.SetScrollRate(10, 10)
    31                  # end wxGlade
    32
    33 -        def __do_layout(self):
    34                  # begin wxGlade: wxgScrolledEMRTreePnl.__do_layout
    35                  __szr_main = wx.BoxSizer(wx.VERTICAL)
    36                  __szr_main.Add(self._emr_tree, 1, wx.EXPAND, 0)
    37                  self.SetSizer(__szr_main)
    38                  __szr_main.Fit(self)
    39                  self.Layout()
    40                  # end wxGlade
    41
    42  # end of class wxgScrolledEMRTreePnl
    43