Dear all,
I have two questions regarding wxpython.
1) I am writing a program, which needs to have a couple of buttons with
labels having non-English characters. I tried following the
internalization tutorial:
>
http://zetcode.com/wxpython/in18/
I made sure that I've compiled wxpython with unicode support and then
got the unicode versions of the strings using the python command
>>>unicode(u'<string>')
However when I run the program, I get just garbage as opposed to the
unicode characters. Any ideas what the problem might be.
2) I am trying to create a simple program, which should edit a file in
the root directory of a computer. So I would like to be able to run this
program as a superuser. Therefore if a normal user is running that
program, I would like to create a pop-up window, where the user can add
the superuser password in order to make changes to the file. I guess
ideally what I would like to have is a similar behaviour to what happens
when one runs synaptic in Ubuntu. Unfortunately I was not able to find a
tutorial how to do that. Can someone point me to the right resource so
that I can achieve this task in a secure way?
Thanks a lot,
George