Python GUI for mysql

Stephen Ferg steve at ferg.org
Thu Dec 19 08:26:59 EST 2002


> queries where the user could just click a button to
> activate the selected query. 

You might look at EasyGui
http://www.ferg.org/easygui/index.html

It makes it easy to do simple Gui stuff like this. A "choicebox"
allows your choices to have a reasonably long descriptions.  The code
would look something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from easygui import *
....

msg = "Pick a query to run"
title = "Sql Query Runner"
choices = ["Q1 - do something", ... "Qn - do something else"]
userChoice = choicebox(msg, title, choices)

if userChoice = None: return
elif userChoice = .... etc. etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A screenshot of a choicebox is here:
http://home.att.net/~stephen_ferg/wyx/screenshot1.png



More information about the Python-list mailing list