Re: Using globals with classes

2005-08-13 Thread Madhusudan Singh
Scott David Daniels wrote: > Madhusudan Singh wrote: >> I am using qwtplot to display a running plot : >> > The way I'd normally accomplish this is to separate the setup and use > by defining a class: > How would one enable dynamic autoscaling of the axes ? I am using setAxisAutoScale, and

Re: Using globals with classes

2005-08-12 Thread Madhusudan Singh
Many thanks for an excellent solution to the problem and clearing up my mind about globals. In some sense, Python globals seem to be a little like the COMMON statement in the old Fortran 77 standard. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using globals with classes

2005-08-12 Thread Scott David Daniels
Madhusudan Singh wrote: > I am using qwtplot to display a running plot : > > void Form3::runningplot(n,plottitle,xname,x,y1name,y1,y2name,y2) > { ^^ I presume this is just some untranslated stuff ^^ > if n==1 : > > plotkey1=self.runningqwtPlot.insertCurve(y1name,self.runningqwtPlot.xBottom,s

Re: Using globals with classes

2005-08-12 Thread Diez B. Roggisch
> Is there a way to make a Python function "remember" the values of certain > variables ? Or use fortran 95 like use module, only : varname, type of > within a def ? I'm not sure what you are trying to do here - but it seems to me that you are not properly designing your application. You really s

Re: Using globals with classes

2005-08-12 Thread Diez B. Roggisch
> Is there a way to make a Python function "remember" the values of certain > variables ? Or use fortran 95 like use module, only : varname, type of > within a def ? I'm not sure what you are trying to do here - but it seems to me that you are not properly designing your application. You really s

Using globals with classes

2005-08-11 Thread Madhusudan Singh
Hi I am relatively new to Python. I am using Qt Designer to create a UI for a measurement application that I use. Everything seems to be clear but the use of globals (defined in the module that is generated using pyuic, that contains the form class). I am using qwtplot to display a running plot