Redirect Graphical output

2008-11-15 Thread Indian
Hi Friends, Is there any way we can redirect graphical output to some file What i require is to run a test for my function but it involves dialog boxes but a test shld be run without user intervention :( import sys import dialog import wx app = wx.PySimpleApp() sys.stdout = open('c:\\abc.txt','w

Re: Unsubscriptable object when using Exec

2008-11-14 Thread Indian
Thanks Chris!! It worked.. Yeah my bad i was trying out the bad logic :) On Sat, Nov 15, 2008 at 5:31 AM, Chris Rebert <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 10:40 AM, Indian <[EMAIL PROTECTED]> wrote: > > Hi Friends > > > > I'm getting the

Unsubscriptable object when using Exec

2008-11-14 Thread Indian
Hi Friends I'm getting the TypeError Unsubscriptable object when using Exec in a class Here's the example class Fake(object): def __init__(self, reg): self._reg = reg def OpenKey(self, rootkey, path): open_key = self._reg path_string='[\'HKLM\']' for key in path.split('\\'):

Re: Reg: Installation problems in psycopg2

2008-10-14 Thread raj . indian . 08
Hi Philip, Thank you. I have posted the same in psycopg mailing list too. I had setup the pg_config value too, but even then the error was coming. Hi Dave, Thank you for the quick reply. Regards Raj K -- http://mail.python.org/mailman/listinfo/python-list

Reg: Installation problems in psycopg2

2008-10-13 Thread raj . indian . 08
Hi all, I am not sure whether this is the right place to ask this question. Please let me know if it isn't. I am trying to install psycopg2 in my windows machine for connecting with the PostgreSQL server. Since there is no binary executable*, I am trying to build my own - and I am faci

Re: Modifying the system menu

2008-09-24 Thread raj . indian . 08
I am creating the window manager for multiple desktops :) Anyways, i got one answer in nabble which I feel is the best option - even though I am just investigating on how to do it. Please find below - James Matthews wrote: > > Hi all, >I am trying to modify the system menu of all the applicati

Re: Modifying the system menu

2008-09-18 Thread raj . indian . 08
On Sep 18, 6:39 am, [EMAIL PROTECTED] wrote: > I tested it again and found that the behaviour is a little different > from what I mentioned previously in the mailchain. > The item is working perfectly the first time around. Now if I close > the application and run it again (which was what I did ear

Re: Modifying the system menu

2008-09-17 Thread raj . indian . 08
I tested it again and found that the behaviour is a little different from what I mentioned previously in the mailchain. The item is working perfectly the first time around. Now if I close the application and run it again (which was what I did earlier), if that application system menu is already mod

Modifying the system menu

2008-09-16 Thread raj . indian . 08
Hi all, I am trying to modify the system menu of all the applications in my machine. For example say - I am creating multiple desktops for windows - and I want to give every application the capability to be moved across different desktops. So I wanted to modify the basic system menu list t