[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] wxPython programming
From: |
cswiger |
Subject: |
[Discuss-gnuradio] wxPython programming |
Date: |
Wed, 23 Feb 2005 17:14:34 -0500 (EST) |
Gang - I'm paradigm shifting from python to wxpython and having
a terrible time of it, but it must be done.
Basically, where do you put an input processing loop in wxpython?
Or will it have to be changed to event driven somehow?
I tried putting a loop at the end of:
class app_flow_graph (stdgui.gui_flow_graph):
def __init__(self, frame, panel, vbox, argv):
stdgui.gui_flow_graph.__init__ (self, frame, panel, vbox, argv)
[create windows, connect blocks and handle events]
while 1:
process input
but that, naturally, blocks the window from ever being drawn.
Shouldn't it go in app.MainLoop() somewhere?
I've been able to create a frame, play a file and change freq with
a text control a-ok. Basically I want to control the radio with a
knob and display the status in a window.
TIA.
--Chuck
- [Discuss-gnuradio] wxPython programming,
cswiger <=