[AG-TECH] Good Pthon Tool
Christoph Willing
willing at itee.uq.edu.au
Tue Apr 25 05:47:39 CDT 2006
On 25/04/2006, at 7:29 PM, carlosperezs at alumnos.uvigo.es wrote:
>
>
>
> Hello!!!
> I am looking for a good python tool for programming frames,
> windows, buttons and
> so on.
> I have this programmation doubt :
>
> vs = wx.BoxSizer(wx.VERTICAL)
For buttons to be on the same line, it should be:
vs = wx.BoxSizer(wx.HORIZONTAL)
>
> #
> # Load button
> #
>
> b = wx.Button(self.panel, -1, "Load remote movie...")
> self.Bind(wx.EVT_BUTTON, self.OnLoad, b)
> vs.Add(b, 0, wx.ALL, 4)
>
> # Local movie
> b = wx.Button(self.panel, -1, "Load local movie...")
> self.Bind(wx.EVT_BUTTON, self.OnLoadLocal, b)
> vs.Add(b, 0, wx.ALL, 4)
Now you will need:
self.SetSizer(vs)
self.SetAutoLayout(True)
>
> I would like to set this two buttons on the same line
> Thank you
Christoph Willing +61 7 3365 8350
QPSF Access Grid Manager
University of Queensland
More information about the ag-tech
mailing list