Esempio n. 1
0
    def __init__(self, parent, id, **kwargs):
	"""Constructor"""
	#
        myStyle = wx.RESIZE_BORDER|wx.DEFAULT_DIALOG_STYLE
	wx.Dialog.__init__(self, parent, id, style=myStyle)
	#
	#  Data Objects.
	#

	#
	#  Windows.
	#
        self.tbarSizer = makeTitleBar(self, 'Reader Info',
                                      color=WP.BG_COLOR_TITLEBAR_FRAME)
        self.infopanel = ReaderInfoPanel(self, -1)
	#
	#  Bindings.
	#
	self._makeBindings()
	#
	#  Sizing.
	#
	self._makeSizers()
	#
	self.SetAutoLayout(True)
        self.SetSizerAndFit(self.sizer)
	#
	#  Events.
	#

	#
	return
Esempio n. 2
0
    def __init__(self, parent, id, **kwargs):
	"""Constructor"""
	#
        myStyle = wx.RESIZE_BORDER|wx.DEFAULT_DIALOG_STYLE
	wx.Dialog.__init__(self, parent, id, style=myStyle)
	#
	#  Data Objects.
	#

	#
	#  Windows.
	#
        self.tbarSizer = makeTitleBar(self, 'Reader Info',
                                      color=WP.BG_COLOR_TITLEBAR_FRAME)
        self.infopanel = ReaderInfoPanel(self, -1)
	#
	#  Bindings.
	#
	self._makeBindings()
	#
	#  Sizing.
	#
	self._makeSizers()
	#
	self.SetAutoLayout(True)
        self.SetSizerAndFit(self.sizer)
	#
	#  Events.
	#

	#
	return
Esempio n. 3
0
    def __make_objects(self):
        """Add interactors"""

        self.tbarSizer = makeTitleBar(self, 'Reader Info')
        self.file_but = wx.Button(self, wx.NewId(),
                                  'File'
                                  )
        self.file_txt = wx.TextCtrl(self, wx.NewId(),
                                    value="<none selected>",
                                    style=wx.RAISED_BORDER|wx.TE_READONLY
                                    )
        self.format_lab = wx.StaticText(self, wx.NewId(),
                                        'Format', style=wx.ALIGN_RIGHT
                                        )
        self.format_cho = wx.Choice(self, wx.NewId(),
                                    choices=['hdf5', 'frame-cache']
                                    )
        self.option_lab = wx.StaticText(self, wx.NewId(),
                                        'Option', style=wx.ALIGN_RIGHT
                                        )
        self.value_lab = wx.StaticText(self, wx.NewId(),
                                        'Value', style=wx.ALIGN_LEFT
                                        )
        self.option_cho = wx.Choice(self, wx.NewId(),
                                    choices=['path']
                                    )
        self.value_txt = wx.TextCtrl(self, wx.NewId(),
                                    value="/imageseries",
                                    style=wx.RAISED_BORDER
                                    )
Esempio n. 4
0
    def __make_objects(self):
        """Add interactors"""

        self.tbarSizer = makeTitleBar(self, 'Reader Info')
        self.file_but = wx.Button(self, wx.NewId(), 'File')
        self.file_txt = wx.TextCtrl(self,
                                    wx.NewId(),
                                    value="<none selected>",
                                    style=wx.RAISED_BORDER | wx.TE_READONLY)
        self.format_lab = wx.StaticText(self,
                                        wx.NewId(),
                                        'Format',
                                        style=wx.ALIGN_RIGHT)
        self.format_cho = wx.Choice(self,
                                    wx.NewId(),
                                    choices=['hdf5', 'frame-cache'])
        self.pixel_lab = wx.StaticText(self,
                                       wx.NewId(),
                                       'Pixel Pitch',
                                       style=wx.ALIGN_RIGHT)
        self.pixel_txt = wx.TextCtrl(self,
                                     wx.NewId(),
                                     value='0.2',
                                     style=wx.RAISED_BORDER)
        self.option_lab = wx.StaticText(self,
                                        wx.NewId(),
                                        'Option',
                                        style=wx.ALIGN_RIGHT)
        self.value_lab = wx.StaticText(self,
                                       wx.NewId(),
                                       'Value',
                                       style=wx.ALIGN_LEFT)
        self.option_cho = wx.Choice(self,
                                    wx.NewId(),
                                    choices=['path', 'pixel pitch'])
        self.value_txt = wx.TextCtrl(self,
                                     wx.NewId(),
                                     value="/imageseries",
                                     style=wx.RAISED_BORDER)