Re: Tkinter, IDLE keeps crashing

2013-02-17 Thread Ash Courchene
I believe I have a MacBook Pro.2.4 GHz Intel Core i5. I dont think I have any weird color settings or 3rd party extensions... How can I tell exactly?? -- http://mail.python.org/mailman/listinfo/python-list

Tkinter, IDLE keeps crashing

2013-02-17 Thread Ash Courchene
Hey, So I've actually had this problem for awhile, and I cant seem to get anything to work. I've followed all the steps & procedures that my google searches have provide me, but I can't seem to get the Tkinter module or the Python IDLE IDE to work. For instance, if I click IDLE on my mac, it'l

Re: How to print html in python the normal way

2012-10-05 Thread ashishjain . ash
Hi, Thanks for the reply. Apologies for my question not clear. Yes I am using django framework for it. - Regards Ashish -- http://mail.python.org/mailman/listinfo/python-list

How to print html in python the normal way

2012-10-04 Thread ashishjain . ash
Hi, I wrote a simple filter as: @register.filter() def html(value): return 'Check' when I use this filter in my template, it displays html as: Check I want to display as: Check am I missing something. - Thanks for your help Ashish -- http://mail.python.org/mailman/listinfo/python-list

Re: psycopg2 / psycopg2.DataError: invalid input syntax for type timestamp with time zone:

2010-03-30 Thread ASh
On Mar 31, 12:50 am, "D'Arcy J.M. Cain" wrote: > On Tue, 30 Mar 2010 13:47:42 -0700 (PDT) > > ASh wrote: > > Hi, please help me understand why am I getting error with this query > > >             new_start_date = "NOW() - '29 days'::INTERV

Re: psycopg2 / psycopg2.DataError: invalid input syntax for type timestamp with time zone:

2010-03-30 Thread ASh
On Mar 31, 12:26 am, Philip Semanchuk wrote: > On Mar 30, 2010, at 4:47 PM, ASh wrote: > > > Hi, please help me understand why am I getting error with this query > > >            new_start_date = "NOW() - '29 days'::INTERVAL" > >        

psycopg2 / psycopg2.DataError: invalid input syntax for type timestamp with time zone:

2010-03-30 Thread ASh
Hi, please help me understand why am I getting error with this query new_start_date = "NOW() - '29 days'::INTERVAL" self.dyndb.orderdb.query('''update set creation_date = %s where id_order = %s''', (new_start_date, "123")) ... psycopg2.DataError: invali

Re: Logger / I get all messages 2 times

2008-10-24 Thread ASh
On Oct 23, 5:10 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > ASh wrote: > > Hi, > > > I have this source: > > > import logging > > import logging.config > > > logging.config.fileConfig("logging.propertie

Logger / I get all messages 2 times

2008-10-23 Thread ASh
Hi, I have this source: import logging import logging.config logging.config.fileConfig("logging.properties") log = logging.getLogger("qname") log.debug("message") --- OUTPUT DEBUG logger_test:8: message DEBUG logger_test:8: message --- FILE CONFIG [formatters] keys: detai

Re: Using Python from Cocoa App via PyObjc - numbers dont match...

2006-11-08 Thread Michael Ash
ng point numbers are inherently imprecise. Read through this essential resource: http://docs.sun.com/source/806-3568/ncg_goldberg.html -- Michael Ash Rogue Amoeba Software -- http://mail.python.org/mailman/listinfo/python-list

Re: Enthought python - Traits

2006-10-13 Thread Ash
Thanks Peter .. I will check out the mailing list. In the meanwhile - i have made some progress. Now working out - how to get a button_fired event to actually return the values .. It's a process (as always..) Cheers, -A Peter Wang wrote: > Ash wrote: > > Hello everyone ! >

Enthought python - Traits

2006-10-12 Thread Ash
: print 'System changed from %s to %s ' %(old,new) but it does not return what the user select. It should return either 0 or 1 based on the two choices, but i can't seem to find a way to trap that. I am relatively new to this GUI programming in Python and really c

register keyevent in wxpython

2005-12-09 Thread ash
hi, is there a way to register application wide hotkey in wxpython? i tried wxWindow::RegisterHotKey(). but the problem is it registers the hotkey as a system wide hotkey. this causes problems in other applications running concurrently which use the same hotkey. i want to do this because i want my

EOF error

2005-12-03 Thread ash
hi, when i try to unpickle a pickled file in binary format, i get this error: E:\mdi>test.py Traceback (most recent call last): File "E:\mdi\qp.py", line 458, in OnReadButton data=p.load(file("ques.dat","r")) EOFError what is the reason? how do i overcome this? Thanks in advance for you val

Re: UnicodeDecodeError

2005-12-01 Thread ash
Thanks Jarek, doubling worked. I thought it was a problem with encoding but didnt think of escaping it. thanks a lot. Thanks for Fredrik too for taking the trouble. Regards, Ashoka -- http://mail.python.org/mailman/listinfo/python-list

Re: how to run an external program...

2005-12-01 Thread ash
Thanks for Philippe, Larry and Fredrik for the help. the subprocess module did the trick. -- http://mail.python.org/mailman/listinfo/python-list

how to run an external program...

2005-12-01 Thread ash
hi, i want to know is there a way to run/control an external program form within a python program? thanks in advance for any support. -- http://mail.python.org/mailman/listinfo/python-list

Re: UnicodeDecodeError

2005-12-01 Thread ash
Thanks Fredrik, i decoded both qu[i][0] and self.query to latin_1 (self.query.decode("latin_1")) and i am not getting the error now. If you dont mind, I have another question for you. I use wxPython for GUI development. When i use a string containing "&" character as a label for statictext, the "&

UnicodeDecodeError

2005-11-30 Thread ash
hi, one of the modules in my programs stopped wroking after i upgraded from python 2.3 to 2.4. I also changed my wxPython to unicode supported one during the process. what the module essentially does is search for a stirng pattern form a list of strings. this is the function: def srchqu(self):

Re: python gui using boa

2005-11-24 Thread ash
Thanks Brian, I could do it. actually it needs all the three mouse events - LeftDown, LeftUp and MouseMove. with regards, Ashoka -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui using boa

2005-11-24 Thread ash
Thanks Brian, that was a good introduction. I have another query for you - how can i make a captionless frame draggable in wxWindows? -- http://mail.python.org/mailman/listinfo/python-list

Re: python gui using boa

2005-11-23 Thread ash
Thanks Steve, i found out the solution to the problem. but a good tutorial on sizers is still missing. -- http://mail.python.org/mailman/listinfo/python-list