diff -r 020420ad8914 -r 07447ee3538e GraphicViewer.py --- a/GraphicViewer.py Fri Jul 24 12:49:57 2009 +0200 +++ b/GraphicViewer.py Fri Jul 24 17:12:59 2009 +0200 @@ -59,9 +59,9 @@ def _init_coll_RangeSizer_Items(self, parent): # generated method, don't edit - parent.AddWindow(self.staticbox1, 0, border=5, flag=wx.ALL) + parent.AddWindow(self.staticbox1, 0, border=5, flag=wx.ALIGN_CENTER_VERTICAL|wx.ALL) parent.AddWindow(self.CanvasRange, 0, border=5, flag=wx.ALL) - parent.AddWindow(self.staticText2, 0, border=5, flag=wx.ALL) + parent.AddWindow(self.staticText2, 0, border=5, flag=wx.ALIGN_CENTER_VERTICAL|wx.ALL) parent.AddWindow(self.CanvasPosition, 0, border=5, flag=wx.GROW|wx.ALL) parent.AddWindow(self.ResetButton, 0, border=5, flag=wx.ALL) parent.AddWindow(self.CurrentButton, 0, border=5, flag=wx.ALL) @@ -103,8 +103,8 @@ self.Canvas.SetYSpec('border') self.staticbox1 = wx.StaticText(id=ID_GRAPHICVIEWERSTATICTEXT1, - label='Range:', name='staticText1', parent=self, - pos=wx.Point(0, 0), size=wx.Size(45, 17), style=0) + label=_('Range:'), name='staticText1', parent=self, + pos=wx.Point(0, 0), size=wx.DefaultSize, style=0) self.CanvasRange = wx.ComboBox(id=ID_GRAPHICVIEWERCANVASRANGE, name='CanvasRange', parent=self, pos=wx.Point(0, 0), @@ -114,8 +114,8 @@ self.Bind(wx.EVT_TEXT_ENTER, self.OnRangeChanged, id=ID_GRAPHICVIEWERCANVASRANGE) self.staticText2 = wx.StaticText(id=ID_GRAPHICVIEWERSTATICTEXT2, - label='Position:', name='staticText2', parent=self, - pos=wx.Point(0, 0), size=wx.Size(60, 17), style=0) + label=_('Position:'), name='staticText2', parent=self, + pos=wx.Point(0, 0), size=wx.DefaultSize, style=0) self.CanvasPosition = wx.ScrollBar(id=ID_GRAPHICVIEWERCANVASPOSITION, name='Position', parent=self, pos=wx.Point(0, 0), @@ -178,7 +178,7 @@ self.VariableGraphic = plot.PolyLine(self.Datas[self.CurrentValue:self.CurrentValue + self.CurrentRange], legend=var_name, colour=colours[0]) - self.GraphicsObject = plot.PlotGraphics([self.VariableGraphic], "%s Graphics" % var_name, "Tick", "Values") + self.GraphicsObject = plot.PlotGraphics([self.VariableGraphic], _("%s Graphics") % var_name, _("Tick"), _("Values")) datas_length = len(self.Datas) if datas_length > 1: start = self.Datas[self.CurrentValue][0]