discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] wxpython gauge & powermate knob


From: Matt Ettus
Subject: Re: [Discuss-gnuradio] wxpython gauge & powermate knob
Date: Sun, 29 May 2005 10:18:53 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

cswiger wrote:
> Gang - Here's a fun demo for fellow knob twisters, combines
> a powermate with the wxPython 'gauge' or bargraph widget.
> They can be seperated and the bargraph used for signal strength,
> volume, spectrum display, etc.
> 
> http://webpages.charter.net/cswiger/gauge_3.py


Nice.  Note that you have 2 lines:

import wx, sys
from wxPython.wx import *


You only need "import wx".  The other one ends up importing the same
stuff, but putting it into the base namespace.  For example, where the
first import allows you to use wx.Gauge, the second gives you Gauge.
This pollutes the namespace and tends to lead to conflicts, which is why
 the wxPython people suggest the first method.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]