Re: How can I handle the char immediately after its input, without waiting an endline?

2008-10-22 Thread Chris Ortner
Is there a way to do the opposite of tty.setraw afterwards to prevent the terminal from not displaying any characters that are typed in? Of course, this can be resolved by re-opening it, but thats not really convenient. -- http://mail.python.org/mailman/listinfo/python-list

Re: Check if module is installed

2008-08-04 Thread Chris Ortner
On Aug 4, 2:25 pm, Kless <[EMAIL PROTECTED]> wrote: > try: >     import foo >     foo_loaded = True > except ImportError: >     foo_loaded = False Many projects use this as the standard procedure to check a module's presence. I assume, this is the best way. Chris -- http://mail.python.org/mailman

Python module for working with a sudden motion sensor on Linux

2008-06-23 Thread Chris Ortner
Hi everyone, I am looking for a python module or something similar which makes use of the capabilities of the kernel module applesmc to provide support for the sudden motion sensor in Apple hardware. It should be something like this: http://pypi.python.org/pypi/PyAppleSMS/1.0 Would it make sense

Re: Proof that \ is a better line joiner than parenthetical sets

2008-06-05 Thread Chris Ortner
One or more spaces behind a \ used for joining a multi-line statement can already generate a SyntaxError exception. 2:1 for paranthesis -- http://mail.python.org/mailman/listinfo/python-list

Re: python and web programming, easy way...?

2008-04-26 Thread Chris Ortner
On Apr 26, 9:36 pm, bvidinli <[EMAIL PROTECTED]> wrote: > Please provide me the quickest/most appropriate solution for web > programming in python. > i will try to switch to python in ehcp too.. > > Currently my web programs are simple Object Oriented programs, that > basicly uses a few files, in p

Re: PyQt - How to prevent a dialog being resized?

2008-04-01 Thread Chris Ortner
On Apr 1, 12:12 am, Kelie <[EMAIL PROTECTED]> wrote: > Hello, > > My question is as subject. I tried something like this and it doesn't > work. > > def resizeEvent(self, event): >     self.size = event.oldSize() > > Any hint? > > Thank you. If you use the Qt designer you can set the minimum- and m