Re: finding monitor or screen resolution in Linux with standard python module

2007-03-07 Thread consmash
On Mar 7, 11:25 am, akbar [EMAIL PROTECTED] wrote: I googled and searched in archive. All I can find is finding resolution with Tkinter and pygame. Any idea to find monitor resolution with standard python module? I can check from output of: xprop -root _NET_DESKTOP_GEOMETRY(CARDINAL) . The

Re: Noob Question: Force input to be int?

2007-01-24 Thread consmash
On 23 Sty, 10:59, [EMAIL PROTECTED] wrote: Hello everyone! I have a piece of code that looks like this: if len(BuildList) 0: print The script found %d game directories: % len(BuildList) print num = 0 for i in BuildList: print str(num) ++ i num =

Re: Reading character from keyboard

2007-01-23 Thread consmash
Tommy Grav napisal(a): A very simple question. I would like to read a single character from the keyboard (y or n). I have tried to look in my Python books and a google search, but have come up empty. I am sure the info s out there, but I guess I am unable to find the right question or search