Example #1
0
    def __init__(self, parent, id):
        # main panel
        wx.Panel.__init__(self,
                          parent=parent,
                          id=id,
                          pos=wx.DefaultPosition,
                          size=wx.DefaultSize,
                          style=wx.NO_BORDER,
                          name='HorstSpace.LayoutMgrPnl')

        # top "row": important patient data is displayed there continually
        self.top_panel = gmTopPanel.cTopPnl(self, -1)

        # notebook
        self.nb = cHorstSpaceNotebook(parent=self)

        # plugins
        self.__gb = gmGuiBroker.GuiBroker()
        self.__gb['horstspace.top_panel'] = self.top_panel
        self.__gb[
            'horstspace.notebook'] = self.nb  # FIXME: remove per Ian's API suggestion
        self.__load_plugins()

        # layout handling
        self.main_szr = wx.BoxSizer(wx.VERTICAL)
        self.main_szr.Add(self.top_panel, 0, wx.EXPAND)
        self.main_szr.Add(self.nb, 1, wx.EXPAND)
        self.SetSizer(self.main_szr)
        #		self.SetSizerAndFit(self.main_szr)
        #		self.Layout()
        #		self.Show(True)

        self.__register_events()
Example #2
0
	def __init__(self, parent, id):
		# main panel
		wx.Panel.__init__(
			self,
			parent = parent,
			id = id,
			pos = wx.DefaultPosition,
			size = wx.DefaultSize,
			style = wx.NO_BORDER,
			name = 'HorstSpace.LayoutMgrPnl'
		)

		# top "row": important patient data is displayed there continually
		self.top_panel = gmTopPanel.cTopPnl(self, -1)

		# notebook
		self.nb = cHorstSpaceNotebook(parent = self)

		# plugins
		self.__gb = gmGuiBroker.GuiBroker()
		self.__gb['horstspace.top_panel'] = self.top_panel
		self.__gb['horstspace.notebook'] = self.nb # FIXME: remove per Ian's API suggestion
		self.__load_plugins()

		# layout handling
		self.main_szr = wx.BoxSizer(wx.VERTICAL)
		self.main_szr.Add(self.top_panel, 0, wx.EXPAND)
		self.main_szr.Add(self.nb, 1, wx.EXPAND)
		self.SetSizer(self.main_szr)
#		self.SetSizerAndFit(self.main_szr)
#		self.Layout()
#		self.Show(True)

		self.__register_events()