wx.gauge into a Custum Status bar

Hello everybody,

I would you like to put on a Custom status bar a simple wx.gauge that
pulse on a Timer (Not a progress gauge).

The status bar is like the one in the wxDemo, which has 3 place where
items are inserted.

Do you have some howto or guide that help me to insert there that gauge?
Is it possible?

I would like to do something like the Gparted Gnome first gauge report
in this [¹] screenshot, but in the status bar; that when a task It is
started, the gauge is started to pulse too.

Thanks in advance,

[¹] http://gparted.sourceforge.net/screens/gparted_2_big.jpg

···

--
Iacopo Masi

Iacopo Masi wrote:

Hello everybody,

I would you like to put on a Custom status bar a simple wx.gauge that
pulse on a Timer (Not a progress gauge).

The status bar is like the one in the wxDemo, which has 3 place where
items are inserted.

Do you have some howto or guide that help me to insert there that gauge?
Is it possible?

You should be able to do it just like the checkbox in the demo. Just create the gauge as a child of the statusbar and reposition it within the statusbar field in the EVT_SIZE event.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

You should be able to do it just like the checkbox in the demo.

ok done.

Just
create the gauge as a child of the statusbar and reposition it within
the statusbar field in the EVT_SIZE event.

Can you help me to write the code for repositionig the gauge?

I bind on it a wx.EVT_SIZE event that recall the OnSize function.

           self.Bind(wx.EVT_SIZE, self.OnSize, self.gauge)

What OnSize function should do?

Many thank in advance for you patience,

···

On 5/18/07, Robin Dunn <robin@alldunn.com> wrote:
--
Iacopo Masi

Iacopo Masi wrote:

···

On 5/18/07, Robin Dunn <robin@alldunn.com> wrote:

You should be able to do it just like the checkbox in the demo.

ok done.

Just
create the gauge as a child of the statusbar and reposition it within
the statusbar field in the EVT_SIZE event.

Can you help me to write the code for repositionig the gauge?

I bind on it a wx.EVT_SIZE event that recall the OnSize function.

          self.Bind(wx.EVT_SIZE, self.OnSize, self.gauge)

What OnSize function should do?

You can also use the sample in the demo for an example of what to do for this as well.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!