Need GUI pop-up to edit a (unicode ?) string

rantingrick rantingrick at gmail.com
Mon Jan 24 12:28:32 EST 2011


On Jan 22, 2:22 pm, Rikishi42 <skunkwo... at rikishi42.net> wrote:
> I'm in need for a graphical pop-up that will display a (unicode ?) string in
> a field, allow the user to change it and return the modified string.
>
> Maybe also keep the original one displayed above it.
>
> Something like this:
> +-------------------------------------------------+
> |   Please confirm or edit the following string   |
> |                                                 |
> |     Original_example_string                     |
> |                                                 |
> |  +-------------------------------------------+  |
> |  |  Original_about_to_be_changed             |  |
> |  +-------------------------------------------+  |
> |                                                 |
> |                     OK                          |
> |                                                 |
> +-------------------------------------------------+

If you download wxPython and build it with unicdode support (i did not
for my version!) you can use a simple textctrl and a statictext to
display this.

For an example of how to do this download the wxPython demo and in the
tree menu under the "miscellaneous" node pick the "Unicode" example.
You will be able to see both the source code and run a demo of this
example strait from the demo GUI! If you need help turning the demo
code into something usable for your script then post back here and i
will help you create whatever you want.



More information about the Python-list mailing list