Re: [Tutor] how to print a string in desired colour

2012-02-12 Thread Scott Nelson
On Sun, Feb 12, 2012 at 6:47 AM, Debashish Saha silid...@gmail.com wrote: suppose i want to print 'hello world' in color blue.so what to do? There was a similar thread awhile ago. Unfortunately the answer isn't an easy one. It depends on what operating system you use. Here's a link to the

Re: [Tutor] What's the keyword for the Python creed?

2011-09-15 Thread Scott Nelson
On Thu, Sep 15, 2011 at 1:19 PM, Richard D. Moores rdmoo...@gmail.comwrote: You know, at the interactive prompt you enter some Monty Python word that I can't remember, and you get a small list of pithy pythonic advice such as explicit is better than implicit, etc. import this You can also

Re: [Tutor] Print to std output with color

2011-01-26 Thread Scott Nelson
Curses is one way to go. Another is to use the PyWin32 module discussed in this thread: http://thread.gmane.org/gmane.comp.python.tutor/58450/focus=58454 Basically, here's a snippet of code that can get you started. This requires that you have the PyWin32 module installed (already installed by

Re: [Tutor] Print to std output with color

2011-01-26 Thread Scott Nelson
Curses is one way to go. Another is to use the PyWin32 module discussed in this thread: I just realized I was assuming you were on Windows. If you are on another OS, the code I posted will obviously not work for you as it is specific to Windows.

Re: [Tutor] Plugin system - how to manage plugin files?

2010-07-28 Thread Scott Nelson
On Wed, Jul 28, 2010 at 10:07 AM, Mac Ryan quasipe...@gmail.com wrote: Hi everybody, Mac, I don't know if this is exactly what you are after, but I created a poor-man's plugin system by simply putting .py files into the same directory as my app and naming them like _plugin.py Each of

Re: [Tutor] What is URL to online Python interpreter?

2009-12-18 Thread Scott Nelson
On Thu, Dec 17, 2009 at 09:32:44PM -0800, Benjamin Castillo wrote: What is URL to online Python interpreter? There is also http://codepad.org/ which also supports lots of languages (Python, Ruby, Perl, PHP, C/C++...). Pretty slick. You can also use it as a public pastebin (this link will

Re: [Tutor] PyWin32 - Library of functions to interact with windows?

2009-11-03 Thread Scott Nelson
Scott Nelson sirg...@gmail.com wrote: It *is* possible to color console text with Python and pywin. But, it is tricky and not obvious. I've been wondering how to do this myself and I recently found some C code on the web [2] that does this and I translated that into to Python and pywin

Re: [Tutor] PyWin32 - Library of functions to interact with windows?

2009-10-14 Thread Scott Nelson
If I may chime in... As Alan said, pywin is basically a thin wrapper around the Win32 API. The Win32 API is very complex. Thus pywin is, by necessity, also very complex. There is documentation for pywin, but it is very minimal as you've probably noticed. If you are a *very* bold beginner with

Re: [Tutor] Providing Solutions for all the Common Questions

2008-10-21 Thread Scott Nelson
To throw out an idea... http://www.showmedo.com/ is a site that believes that learning-by-watching is a very effective way to teach people new skills. So, they host lots of (user-generated) screencasts (usually 5-10 minutes) that show people how to do things. Because the site is Python focused,

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Scott Nelson
Komodo also often gets props from the IDE People I've known. To throw another one into the mix, ActiveState has a free/open source version of its Komodo IDE called Komodo Edit. I downloaded it and played with it for a few minutes awhile ago. Seems pretty slick. Anyone have any first hand

[Tutor] win32gui, SetForegroundWindow() and setting focus

2008-03-16 Thread Scott Nelson
Greetings all... I'm looking to use the win32api and win32gui modules to do a bit of Windows tinkering (win2k) and I've hit a snag. I'd like to programmatically set which window has the focus. But win32gui.SetForegroundWindow(hwnd) seems to be what I'm looking for, but, it isn't working quite