wx.gauge question

Varsha Purohit wrote:

Hello All,
        I have an application where i want to show series of images one by one getting refreshed on the panel. Till then i want to show a gauge, which uses pulse method because number of images shown on the panel is decided on runtime. But when i am using pulse method it doesnt behave like a pulse should behave in a status bar. CAn anyone tell me how to implement this pulse method. should i put it in a timer or some loop which is inputting the images ??

You need to call Pulse each time you want the gauge to be updated.

···

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

Hi ,
Can i make a generic gauge compared to pulse… i am actually loading images on the GUI and refreshing it everytime… so this progress bar should fill according to number of images. Number of images are not constant it changes with run time… but i take it as an input in the GUI. But when i tried to write something like this… it didn’t work…
self.gauge1 = wx.Gauge(self.panel, -1, 10, (100,620), (190, 20)) in this line i dont want the value 10 to be constant, so i replaced it with the variable that is reading number of images from the GUI and when i wrote like this

self.gauge1 = wx.Gauge(self.panel, -1, var, (100,620), (190, 20))… it is giving me error. expected argument 3 of type ‘int’… can anyone suggest me what should i do… can i do something like generic gauge or else i will have to proceed with pulse…

thanks,

···

On Sat, Feb 23, 2008 at 3:55 PM, Robin Dunn robin@alldunn.com wrote:

Varsha Purohit wrote:

Hello All,

    I have an application where i want to show series of images one

by one getting refreshed on the panel. Till then i want to show a gauge,

which uses pulse method because number of images shown on the panel is

decided on runtime. But when i am using pulse method it doesnt behave

like a pulse should behave in a status bar. CAn anyone tell me how to

implement this pulse method. should i put it in a timer or some loop

which is inputting the images ??

You need to call Pulse each time you want the gauge to be updated.

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


Varsha Purohit,
Graduate Student

Can you show us a bit more code? Specifically, where does “var” get its value? The error message seems to indicate that this is a type problem (i.e. “var” is actually a string or something), but it could just be a problem of scope. Either way, it doesn’t sound like a problem with either Gauge or Pulse…

···

On Sun, Feb 24, 2008 at 10:12 AM, Varsha Purohit varsha.purohit@gmail.com wrote:

self.gauge1 = wx.Gauge(self.panel, -1, 10, (100,620), (190, 20)) in this line i dont want the value 10 to be constant, so i replaced it with the variable that is reading number of images from the GUI and when i wrote like this

self.gauge1 = wx.Gauge(self.panel, -1, var, (100,620), (190, 20))… it is giving me error. expected argument 3 of type ‘int’… can anyone suggest me what should i do… can i do something like generic gauge or else i will have to proceed with pulse…


www.fsrtechnologies.com