From shankargiri at gmail.com Sun May 6 07:42:09 2012 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Sun, 6 May 2012 01:42:09 -0400 Subject: [Pygui] Combo box in pygui Message-ID: I cannot find a combo box component in PyGUI. Any chance of this getting included? -------------- next part -------------- An HTML attachment was scrubbed... URL: From shankargiri at gmail.com Tue May 22 09:03:54 2012 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Tue, 22 May 2012 03:03:54 -0400 Subject: [Pygui] Bug in PyGUI TextField(Win32) Message-ID: <1467F47E-4D92-4647-8291-54A12D6B73FE@gmail.com> File "c:\Python27\lib\site-packages\GUI\TextField.py", line 55, in set_text self._win.SetWindowText(x.replace("\n", "\r\n")) AttributeError: 'float' object has no attribute 'replace' This is probably occurring because a float is being passed to the TextField. The Cocoa version works fine but win32 errors out. The fix is: self._win.SetWindowText(str(x).replace("\n", "\r\n")) Shankar Giri Venkita Giri shankargiri at gmail.com From greg.ewing at canterbury.ac.nz Tue May 22 13:30:41 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Tue, 22 May 2012 23:30:41 +1200 Subject: [Pygui] Bug in PyGUI TextField(Win32) In-Reply-To: <1467F47E-4D92-4647-8291-54A12D6B73FE@gmail.com> References: <1467F47E-4D92-4647-8291-54A12D6B73FE@gmail.com> Message-ID: <4FBB78E1.3020000@canterbury.ac.nz> Shankar Giri Venkita Giri wrote: > File "c:\Python27\lib\site-packages\GUI\TextField.py", line 55, in set_text > self._win.SetWindowText(x.replace("\n", "\r\n")) > AttributeError: 'float' object has no attribute 'replace' > > This is probably occurring because a float is being passed > to the TextField. The Cocoa version works fine but win32 errors out. You're not supposed to be putting a float into a text field, only a string. If you're getting away with it in Cocoa, that's just an accident. I could put a typecheck into the Cocoa version to prevent that, but I'm not sure it's worth the effort. Such LBYL checks are generally not considered pythonic. -- Greg From rchenard at gmail.com Sat May 26 13:13:20 2012 From: rchenard at gmail.com (=?ISO-8859-1?Q?Renaud_Ch=E9nard?=) Date: Sat, 26 May 2012 13:13:20 +0200 Subject: [Pygui] Scroll Event => SpinControl ? Message-ID: Hello, I can find a way to get the scroll event from the middle button of the mouse. I was searching it because i to try to implement a SpinControl in PyGUI Have a nice day Ren -------------- next part -------------- A non-text attachment was scrubbed... Name: spin.png Type: image/png Size: 535 bytes Desc: not available URL: From greg.ewing at canterbury.ac.nz Sun May 27 00:28:01 2012 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Sun, 27 May 2012 10:28:01 +1200 Subject: [Pygui] Scroll Event => SpinControl ? In-Reply-To: References: Message-ID: <4FC158F1.8020300@canterbury.ac.nz> Renaud Ch?nard wrote: > I can find a way to get the scroll event from the middle button of the mouse. There isn't one at the moment, sorry. I'll add this to my feature request list. -- Greg From rchenard at gmail.com Mon May 28 21:46:07 2012 From: rchenard at gmail.com (=?ISO-8859-1?Q?Renaud_Ch=E9nard?=) Date: Mon, 28 May 2012 21:46:07 +0200 Subject: [Pygui] Use a thread in a View class Message-ID: Hello, I'm trying to use PyGui with PYO. I have done a Sequencer class based on View class (to easily communicate with my Model) that control the playback of the sound. PYO need is own thread to process sounds, but i can't find how to have a external thread communicating with the PyGui model. The result is not good with Task class : only playing when i move the interface... Is it possible ? Thanks for your answer Ren -------------- next part -------------- An HTML attachment was scrubbed... URL: From rchenard at gmail.com Wed May 30 16:45:52 2012 From: rchenard at gmail.com (=?ISO-8859-1?Q?Renaud_Ch=E9nard?=) Date: Wed, 30 May 2012 16:45:52 +0200 Subject: [Pygui] Use a thread in a View class In-Reply-To: References: Message-ID: Hello, I answer to myself because i've got something new with this problem. Indeed, it works perfectly on Windows. So i think the problem come from PyGtk and his use of gobject. I will try to use this solution ( http://faq.pygtk.org/index.py?req=show&file=faq20.001.htp) to see if it works better now on Linux (did i forget to mention that i was on Linux ? sorry...). Have a nice day Ren PS : sorry for my poor english... 2012/5/28 Renaud Ch?nard > Hello, > > I'm trying to use PyGui with PYO. > > I have done a Sequencer class based on View class (to easily communicate > with my Model) that control the playback of the sound. > > PYO need is own thread to process sounds, but i can't find how to have a > external thread communicating with the PyGui model. > The result is not good with Task class : only playing when i move the > interface... > > Is it possible ? > > Thanks for your answer > > Ren > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rchenard at gmail.com Wed May 30 19:55:00 2012 From: rchenard at gmail.com (=?ISO-8859-1?Q?Renaud_Ch=E9nard?=) Date: Wed, 30 May 2012 19:55:00 +0200 Subject: [Pygui] Use a thread in a View class In-Reply-To: References: Message-ID: Ok, it work great ! You just have to append this lines :" import gobject gobject.threads_init() " to use threads with PyGui on Linux. Hope it can help Ren 2012/5/30 Renaud Ch?nard > Hello, > > I answer to myself because i've got something new with this problem. > > Indeed, it works perfectly on Windows. So i think the problem come from > PyGtk and his use of gobject. > > I will try to use this solution ( > http://faq.pygtk.org/index.py?req=show&file=faq20.001.htp) to see if it > works better now on Linux (did i forget to mention that i was on Linux ? > sorry...). > > Have a nice day > > Ren > > PS : sorry for my poor english... > > > 2012/5/28 Renaud Ch?nard > >> Hello, >> >> I'm trying to use PyGui with PYO. >> >> I have done a Sequencer class based on View class (to easily communicate >> with my Model) that control the playback of the sound. >> >> PYO need is own thread to process sounds, but i can't find how to have a >> external thread communicating with the PyGui model. >> The result is not good with Task class : only playing when i move the >> interface... >> >> Is it possible ? >> >> Thanks for your answer >> >> Ren >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: