[Tutor] visibility of variables

2005-08-01 Thread Victor Reijs
Hello all of you, I have problems with the visibility of variables in python. I am used to the idea of Javascript and other languages where one can define global variables if they are defined outside a function. It seems Python is not doing that, but how can I make it work? I think it needs some

Re: [Tutor] visibility of variables

2005-08-01 Thread Victor Reijs
THANKS Kent. It seems I used the wrong keywords to find answer to my question. This page is very very helpfull! I now works indeed. THANKS for your fast help. All the best, Victor Kent Johnson wrote: >>I have problems with the visibility of variables in python. I am >>used to the idea of Javasc

[Tutor] print a line in IDLE as bold, italics or a color

2005-08-02 Thread Victor Reijs
Hello all of you, I am trying to simply(?) print some text in a print statement as bold (or itlaics or an certain color). How do I do this in python? Browsing the web gives we all kind of soluation, but non seem to work (a lot are related when printing on the web). Say I want to print the text

Re: [Tutor] print a line in IDLE as bold, italics or a color

2005-08-02 Thread Victor Reijs
Hello Danny, Danny Yoo wrote: >>This is in a seperate text box, but I want to have the colors >>(bold/italics) in the default IDLE window. > > This will probably be more difficult. I don't believe IDLE itself allows > a user's program to set its own fonts and colors within the running IDLE > win

Re: [Tutor] print a line in IDLE as bold, italics or a color

2005-08-03 Thread Victor Reijs
Hello Alan, Thanks for your feedback. I managed to get some color in my print in IDLE (or the Paint Shop Pro Script Output window): ### import sys print >> sys.stderr,'Hello world' ### All the best, Victor Alan G wrote: > Is there any reason why you want to change the ouput only in IDLE? > O

Re: [Tutor] print a line in IDLE as bold, italics or a color

2005-08-03 Thread Victor Reijs
Hello Alan, Alan G wrote: >> Thanks for your feedback. I managed to get some color in my print in >> IDLE (or the Paint Shop Pro Script Output window): > > I'm intrigued. Does PSP now support scripting in Python? > Is that a standard feature? (I'm a Photoshop Elements user > myself...) It is p

[Tutor] dialog boxes

2005-09-06 Thread Victor Reijs
Hello all of you, I want to use yes/no-, text-, info-, checklist- dialog boxes in my image manipulation program (on a Windows XP Pro system using python 2.2 and 2.3). What is the best way to do this? Thanks for your feedback. All the best, Victor

[Tutor] dialog boxes for Windows

2005-09-21 Thread Victor Reijs
Hello all of you, I want to use yes/no-, text-, info-, checklist- dialog boxes in my image manipulation program (on a Windows XP Pro system using python 2.2 and 2.3). What is the best way to do this? Do peopel have some examples or links? I want to know which python modules are needed and where t