detect current timezone set by kde

2008-03-18 Thread Pradnyesh Sawant
, I'm right now in hk and would like the app to show me time in my current timezone (hong kong). Any guidelines how may I go about doing this? thanks a lot in advance :-) -- warm regards, Pradnyesh Sawant -- Believing everybody is dangerous; believing no one is dangerous... --Abraham Li

help needed with regex and unicode

2008-03-03 Thread Pradnyesh Sawant
#x27;summary'] = "æ­ï½ æ½å¤此è±åã $errorMessage = "æ­ï½ æ½å¤此è±åã } } ** -- warm regards, Pradnyesh Sawant -- Luck is the residue of good design. --Anon signature.asc Description: Digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with mod_python

2008-02-17 Thread Pradnyesh Sawant
On 02:07, 17Feb2008, Graham Dumpleton wrote: > On Feb 17, 3:29 pm, Pradnyesh Sawant wrote: > > Hello, > > Your mod_python isn't compiled against Python 2.5 but is using an > older version. You will need to rebuild mod_python to use Python 2.5 > instead. You cannot ju

Re: xmltramp with python2.(4-5)

2008-02-17 Thread Pradnyesh Sawant
On 22:51, 16Feb2008, John Machin wrote: > On Feb 17, 5:40 pm, Pradnyesh Sawant wrote: > > fire up python2.4 interactive prompt > do this: > import sys; sys.path > import xmltramp; xmltramp.__file__ > > then fire up python2.5 interactive prompt > do this: > impor

xmltramp with python2.(4-5)

2008-02-16 Thread Pradnyesh Sawant
dule named xmltramp when used with python2.5. Why is this ambiguity? Ain't the same PYTHONPATH being used for both? -- warm regards, Pradnyesh Sawant -- We are not just our behaviour. We are the person managing our behaviour. --The One Minute Manager signature.asc Description: Digital sig

problem with mod_python

2008-02-16 Thread Pradnyesh Sawant
too. thanks! -- warm regards, Pradnyesh Sawant -- We are not just our behaviour. We are the person managing our behaviour. --The One Minute Manager signature.asc Description: Digital signature -- http://mail.python.org/mailman/listinfo/python-list

problem with eric

2007-10-18 Thread Pradnyesh Sawant
Qt4, but i don't understand why (i'm explicitly mentioning PyQt4). How do i tell eric to use just Qt4, and not Qt3? ps: i have made both Qt and Qt4 Directory to contain /usr/share/qt4, in preferences->qt. but that too does not help. -- warm regards, Pradnyesh Sawant -- Computers a

ImportError: No module named QtOpenGL

2007-04-28 Thread Pradnyesh Sawant
4/Qt.py", line 4, in ? from PyQt4.QtOpenGL import * ImportError: No module named QtOpenGL I've tried installing python-opengl, and also qt4-dev-tools, but the error persists. What pkg do i need to install to get rid of the error message? Thanks! -- warm regards, Pradnyesh Sawant -- Be yo

Re: pyqt4 signal/slot using PyObject* and shortcut

2007-04-26 Thread Pradnyesh Sawant
On 4/27/07, Pradnyesh Sawant wrote: > Hello, i have the following code: > # > import time > import sys > from PyQt4 import QtGui, QtCore > > class Counter(QtCore.QThread): > def __init__(self): >

pyqt4 signal/slot using PyObject* and shortcut

2007-04-26 Thread Pradnyesh Sawant
bject at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui object at 0xb6a8f12c>, (<__main__.Gui obje

Re: passing tuple with pyqt4 signal/slot mechanism

2007-04-26 Thread Pradnyesh Sawant
4.5-2ubuntu1 qt4: couldn't see just "qt4" in aptitude ??? (have qt4-qtconfig installed though). qt4-dev-tools not installed (is that needed?) -- warm regards, Pradnyesh Sawant -- Be yourself, everyone else is taken. --Anon -- http://mail.python.org/mailman/listinfo/python-list

Re: passing tuple with pyqt4 signal/slot mechanism

2007-04-26 Thread Pradnyesh Sawant
what versions you are using and on > which > platform. Whatever they are, try the latest release. Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2 -- warm regards, Pradnyesh Sawant -- Be yourself, everyone else is taken. --Anon --

Re: passing tuple with pyqt4 signal/slot mechanism

2007-04-26 Thread Pradnyesh Sawant
the signal before connecting it. Also my crystal ball isn't telling > me what versions you are using or what platform you are on. > > Phil > > -- warm regards, Pradnyesh Sawant -- Be yourself, everyone else is taken. --Anon -- http://mail.python.org/mailman/listinfo/python-list

passing tuple with pyqt4 signal/slot mechanism

2007-04-26 Thread Pradnyesh Sawant
ows: tpl: ('Primary', 'priSec') tpl: (,) **tpl: ,),),),),),),),) Can anyone kindly tell me what's happening here? Why is the tuple ("Primary", "priSec") getting converted to this thingy? And what is this thingy anyways (It looks

problem with qthread and signal/slot

2007-04-14 Thread Pradnyesh Sawant
nsiderate and kind enough to point out mistakes/better approaches with the above code. Thanks a lot! -- warm regards, Pradnyesh Sawant -- Be yourself, everyone else is taken. --Anon -- http://mail.python.org/mailman/listinfo/python-list

Re: doubt with importing module, given module name

2007-04-13 Thread Pradnyesh Sawant
> module_name = "module" > mod = __import__(module_name) > class_name = module_name.capitalize() > cls = getattr(mod, class_name) > inst = cls() > Worked like a magic charm :) Also helped me understand the concept of getattr :D Thanks a million! -- warm regards, Pra

Re: output of top on a linux box

2007-04-13 Thread Pradnyesh Sawant
> Can you pull the same information from /proc/stat as opposed to using > a pipe to top? The first line(s) should contain (at least): > > cpu usermode, lowprio, system, idle, hz. Thanks a lot for the help. I finally decided to go with your suggestion. -- warm regards, Pradnyesh

installing pyqt4 on ubuntu 6.06

2007-04-10 Thread Pradnyesh Sawant
rking condition would be very helpful Thanks a lot -- warm regards, Pradnyesh Sawant -- Be yourself..everyone else is taken. --Anon -- http://mail.python.org/mailman/listinfo/python-list

Re: output of top on a linux box

2007-04-09 Thread Pradnyesh Sawant
at proc(5). > > Thanks, > > Jeff > > > > > > On 4/9/07, Pradnyesh Sawant <[EMAIL PROTECTED]> wrote: > > Hello, > > I need the cpu usage of a linux box, for which i capture the output of > > "top" using "popen". However, i am

output of top on a linux box

2007-04-09 Thread Pradnyesh Sawant
Hello, I need the cpu usage of a linux box, for which i capture the output of "top" using "popen". However, i am facing problems during string handling. The code snippet is:- top = os.popen("top -n 1") rd = top.read().split("\n") splt = rd[2].split() # cpu = splt[2][:-4] # why ain't this working

doubt with importing module, given module name

2007-04-09 Thread Pradnyesh Sawant
Hello, I have a string which in reality is the name of a module to be imported. The name of the class contained in the module also has the same (although with different capitalization). My requirement is to import the module, and also create an instance of the class. eg: str = "module"

making an "executable" for a python code (newbie)

2007-03-10 Thread Pradnyesh Sawant
hello, i have some python scripts (especially, PyQt4 scripts) that i want to deploy on both linux and windows m/c's. different packaging tools that i checked (cx_freeze, distutils, pyinstaller) allow me to create "installers". however, i'm interested in creating "executables" that allow the code to