wxglade - Needing some tutorial information (A simple GPIO / LED / BUTTON)
Jerry Rutherford <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
I have written some python programs and have started to create GLADE
control panels, bring them in, assign code to the buttons, and link them to
GPIO. So I have no difficulty in creating a program consisting of...
- python program
- glade panel
- css document
I recently saw *wxglade* and installed it... I can create a panel with
buttons, and I can click GENERATE CODE and get a functional window insofar
as it will display and I can click the buttons. This is wonderful... I do
*NOT* need a separate GLADE file nor a separate CSS file to change button
colors, etc. So I can make some useful panels (windows) immediately.
The issue is... I cannot figure out *WHERE* in wxglade to insert things
such as INCLUDE GPIO so that the buttons will actually be able to turn an
LED on for example.
I also noticed, when I make a button, it installs bogus code including an
erroneous print statement... missing the "(" and ")" so if I try to run it
in Thonny for example... it throws errors.
I would rather NOT have to edit the code externally (Gedit/thonny/etc.) if
possible... as that would mean that anytime I open the original file in
wxglade and add a button or make a change... then tell it GENERATE CODE...
all the code I got working would be obliterated.
I mean... if I must do it that way... then at least it is still useful for
creating the interface without needing 3 separate files.
But does *ANYONE* have a decent tutorial showing how to do the includes
and/or modify the default code for a button from *within* wxglade???
Thanks,
Jerry
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/5da0a47a-8ddc-49d1-9f80-33c99177a19f%40googlegroups.com.