0

I have written a Python program that takes information from the user at the command line, and then saves this data in a PostgreSQL database.

Now I want to wrap a GUI around my program. I am just starting with wxPython and have completed a few tutorials, but still can't figure out how to get want I want.

Basically my program has the user inputting data, which is then assigned to variables in Python, then the data from the variables are posted into the database.

So I basically need to know how how to create a GUI that accepts input from users in text boxes, then when the user clicks a button, the data in those text boxes is assigned to variables in my Python code. I know how to create the text boxes, but I don't know how to assign data from those text boxes to variables. Would this be a particular type of EVENT? Or something else?

Also, if I want any Python code to be executed on a particular event, do I just need to type the code to be executed under the On...Event code in my program?

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by vegaseat
0

I don't have any specific answers, but I suggest you start here. Most of the things you need, are discussed in great detail in that thread.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.