Re: [Tutor] Tainted characters and CGI

2005-10-31 Thread Ron Weidner
--- Tim Johnson <[EMAIL PROTECTED]> wrote: > Hello: > I need to tighten my handling of CGI transmissions. > I particular, I need to develop a strategy of safely > dealing with "tainted" characters. Ahh... tainted characters. If by "tainted" you mean not UTF-8, there is a c tool called "iconv"

[Tutor] Linux sound control

2005-07-21 Thread Ron Weidner
It's simple, without any bells and whistles. Move the slider up and down to change the volume on your Linux system. Written in Python and Tkinter, this little program should work with any window manager. http://www.techport80.com/soundctrl/sound_ctrl.tgz -- Ronald Weidner http://www.techport80.

Re: [Tutor] Send attachment

2005-07-21 Thread Ron Weidner
--- Jorge Louis De Castro <[EMAIL PROTECTED]> wrote: > Hello, > > Any ideas how I can use Python and the Windows API > to open a PC's mail client and send an attachment? > The idea is saving some data onto a file and then > invoke the email client (OE or Outlook or whatever > is the default on

Re: [Tutor] Tk -- which label clicked

2005-07-14 Thread Ron Weidner
--- geon <[EMAIL PROTECTED]> wrote: > Ron Weidner napsal(a): > > >This doesn't work. > >def icon_click(self, event=None): > > print event.widget.option_get("text", > event.widget) > > > > > > > maybe event.widget[

[Tutor] Tk -- which label clicked

2005-07-14 Thread Ron Weidner
This doesn't work. Not an error though. :) What I'm trying to do is get the text value of a label. def icon_click(self, event=None): print event.widget.option_get("text", event.widget) Or, more to the point... I need to dynamicaly create clickable labels, each using the same callback. When

Re: [Tutor] Tkinter query?

2005-07-14 Thread Ron Weidner
> > tk = Tk() > > tk.config(background='pink') > > tk.geometry('400x400') > > # 320 = width # 150 = height # # Left and down are relative to the screens uppeer left # # 200 = position left (x) # 200 = position down (y) tk.geometry( "320x150+200+200") hth Ronald Weidner http://www.techport80.c

[Tutor] tk entry focus

2005-07-13 Thread Ron Weidner
I've struggled... Now I'm asking... What's wrong with this code? Or more to the point, how do you set the focus to an Entry widget? Traceback (most recent call last): File "./run_dialogue.py", line 33, in ? app = Run_dialogue( root ) File "./run_dialogue.py", line 23, in __init__ sel