discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] simple control of wxgui application


From: Achilleas Anastasopoulos
Subject: [Discuss-gnuradio] simple control of wxgui application
Date: Sat, 22 Feb 2014 17:26:17 -0500

I have a simple python gui application (compiled from grc)
that I want to control by adding some sleep statement in the main
and changing some variables as it runs and then stop it.

The code produced by grc looks like:

...
if __name__ == '__main__':
    import ctypes
    import sys
    if sys.platform.startswith('linux'):
        try:
            x11 = ctypes.cdll.LoadLibrary('libX11.so')
            x11.XInitThreads()
        except:
            print "Warning: failed to XInitThreads()"
    parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
    (options, args) = parser.parse_args()
    tb = my_test()
    tb.Start(True)
    tb.Wait()

====================

I would like to add some sleep statement and change some variables after
starting the application and then stop it after some time.
How is this done?
(I have an idea how to do that in non-gui, but not for gui apps).

thanks
Achilleas

reply via email to

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