Re: wxPython - drawing without paint event

2007-08-13 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I guess I haven't looked up any wxPython tutorials. I typically > use a combination of the wxPython wiki, the demo and the WIA book > for my work. Me too (except the mailing list, occasionally), and it works quite well. Regards, Björn -- BOFH excuse #306: CPU-ang

Re: wxPython - drawing without paint event

2007-08-13 Thread kyosohma
On Aug 13, 3:15 pm, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > While the book does have issues, it is better (in my opinion) than > > the only published Tkinter book, although both books are now > > outdated. > > Outdated to a certain limit. It's quite a bit more recent than those

Re: wxPython - drawing without paint event

2007-08-13 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > While the book does have issues, it is better (in my opinion) than > the only published Tkinter book, although both books are now > outdated. Outdated to a certain limit. It's quite a bit more recent than those many tutorials around still today using "from wxpython.w

Re: wxPython - drawing without paint event

2007-08-12 Thread kyosohma
On Aug 12, 4:11 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > On Aug 12, 2:20 pm, Bjoern Schliessmann > [EMAIL PROTECTED]> wrote: > >> But any suggestions what's > >> better for a beginner? The (incomplete) tutorial surely not. > > > Another GUI toolkit. > > Well if all you have t

Re: wxPython - drawing without paint event

2007-08-12 Thread Bjoern Schliessmann
7stud wrote: > On Aug 12, 2:20 pm, Bjoern Schliessmann > But any suggestions what's >> better for a beginner? The (incomplete) tutorial surely not. > Another GUI toolkit. So it seems your dislike is not for the book, but for the toolkit. Regards, Björn -- BOFH excuse #414: tachyon emission

Re: wxPython - drawing without paint event

2007-08-12 Thread Steve Holden
7stud wrote: > On Aug 12, 2:20 pm, Bjoern Schliessmann [EMAIL PROTECTED]> wrote: >> But any suggestions what's >> better for a beginner? The (incomplete) tutorial surely not. >> > > Another GUI toolkit. > > Well if all you have to offer is fatuous advice you would be helping people more by kee

Re: wxPython - drawing without paint event

2007-08-12 Thread 7stud
On Aug 12, 2:20 pm, Bjoern Schliessmann wrote: > But any suggestions what's > better for a beginner? The (incomplete) tutorial surely not. > Another GUI toolkit. -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython - drawing without paint event

2007-08-12 Thread Bjoern Schliessmann
7stud wrote: > I don't. "wxPython in Action" is by far the worst computer book > I've ever purchased. It's poorly organized, poorly written, and > full of mistakes--and it's expensive. The fact that the authors > foist that piece of junk on unsuspecting newbies is a crime. Your opinion (I've se

Re: wxPython - drawing without paint event

2007-08-12 Thread 7stud
On Aug 12, 6:06 am, Bjoern Schliessmann wrote: > I really recommend reading "wxPython in Action", or at least the > tutorial. > I don't. "wxPython in Action" is by far the worst computer book I've ever purchased. It's poorly organized, poorly written, and full of mistakes--and it's expensive.

Re: wxPython - drawing without paint event

2007-08-12 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > Okay, but how do I tell wx that it needs to send me a paint event? It will send it on its own. You just need to bind your OnPaint (or similar) method to it like 7stud demonstrates. I really recommend reading "wxPython in Action", or at least the tutorial. Regards,

Re: wxPython - drawing without paint event

2007-08-11 Thread 7stud
On Aug 11, 7:59 pm, [EMAIL PROTECTED] wrote: > On Aug 11, 3:31 am, Bjoern Schliessmann > > > [EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > On a related topic, it seems like it would be nice to do *all* > > > drawing in > > > response topaintevents. When I get aneventfrom the timer,

Re: wxPython - drawing without paint event

2007-08-11 Thread glenn . chappell
On Aug 11, 3:31 am, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > On a related topic, it seems like it would be nice to do *all* > > drawing in > > response topaintevents. When I get aneventfrom the timer, I > > would just tell wx that part of the window needs redrawing, and > > depen

Re: wxPython - drawing without paint event

2007-08-11 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > On a related topic, it seems like it would be nice to do *all* > drawing in > response to paint events. When I get an event from the timer, I > would just tell wx that part of the window needs redrawing, and > depend on it to give me a paint even when nothing of higher

Re: wxPython - drawing without paint event

2007-08-10 Thread glenn . chappell
On Aug 10, 1:40 am, 7stud <[EMAIL PROTECTED]> wrote: > On Aug 9, 7:46 pm, Matt Bitten <[EMAIL PROTECTED]> wrote: > > > I've got a wxPython program that needs to do some drawing on a DC on a > > regular basis And there is no event, > > so my code doesn't get called. What do I do? > > Then the ev

Re: wxPython - drawing without paint event

2007-08-10 Thread 7stud
On Aug 9, 7:46 pm, Matt Bitten <[EMAIL PROTECTED]> wrote: > I've got a wxPython program that needs to do some drawing on a DC on a > regular basis And there is no event, > so my code doesn't get called. What do I do? Then the event is: "on a regular basis", i.e. the passage of time. You can us

wxPython - drawing without paint event

2007-08-09 Thread Matt Bitten
I've got a wxPython program that needs to do some drawing on a DC on a regular basis, whether or not a paint event happens. I know how to make a ClientDC to do the drawing in, and I know what drawing calls to make. But how do I make it all happen? After I call MainLoop, none of my code gets called