Re: Help in wxpython

2009-12-03 Thread Kevin Walzer
Madhura, Sorry to be a bit off-topic, but, I would really recommend you to use pygtk instead of wx. For one thing, the developers at pygtk are very active (they have their mailing list as well ) and it comes by default with python on almost all linux distros. You can also easily install it on w

Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
On Dec 3, 3:22 pm, Nobody wrote: > On Thu, 03 Dec 2009 07:55:19 +, r0g wrote: > > I have to recommend to opposite, stick with wx. What's the point of > > tying yourself into GTK when wx works on Mac, PC and Linux? > > The main drawbacks are that wxWidgets sucks compared to GTK or Qt (mostly >

Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
On Dec 2, 10:05 pm, Krishnakant wrote: > On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote: > > Hi > > > I am trying to write an  PAINT like application where on the mouse > > click a circle is drawn on canvas. I am new to python and using > > wxpython to create this. > > > here is the co

Re: Help in wxpython

2009-12-03 Thread Nobody
On Thu, 03 Dec 2009 07:55:19 +, r0g wrote: > I have to recommend to opposite, stick with wx. What's the point of > tying yourself into GTK when wx works on Mac, PC and Linux? The main drawbacks are that wxWidgets sucks compared to GTK or Qt (mostly due to being modelled on the Win32 API, whic

Re: Help in wxpython

2009-12-03 Thread Lie Ryan
On 12/3/2009 6:55 PM, r0g wrote: Krishnakant wrote: Madhura, Sorry to be a bit off-topic, but, I would really recommend you to use pygtk instead of wx. For one thing, the developers at pygtk are very active (they have their mailing list as well ) and it comes by default with python on almost all

Re: Help in wxpython

2009-12-03 Thread Dietmar Schwertberger
On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote: def InitBuffer(self): size=self.GetClientSize() self.Buffer=wx.EmptyBitmap(size.width,size.height) dc=wx.BufferedDC(None,self.buffer) dc.SetBackground(wx.Brush(self.GetBackgroundColour())) dc

Re: Help in wxpython

2009-12-03 Thread r0g
Krishnakant wrote: > On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote: >> Hi >> >> I am trying to write an PAINT like application where on the mouse >> File "C:/Python26/circle.py", line 19, in InitBuffer >> dc=wx.BufferedDC(None,self.buffer) >> AttributeError: 'SketchWindow' obj

Re: Help in wxpython

2009-12-02 Thread Krishnakant
On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote: > Hi > > I am trying to write an PAINT like application where on the mouse > click a circle is drawn on canvas. I am new to python and using > wxpython to create this. > > here is the code: > > import wx > > class SketchWindow(wx.Wind

Re: Help in wxpython

2009-12-02 Thread Dave Angel
madhura vadvalkar wrote: Hi I am trying to write an PAINT like application where on the mouse click a circle is drawn on canvas. I am new to python and using wxpython to create this. here is the code: import wx class SketchWindow(wx.Window): def __init__ (self, parent,ID): wx

Help in wxpython

2009-12-02 Thread madhura vadvalkar
Hi I am trying to write an PAINT like application where on the mouse click a circle is drawn on canvas. I am new to python and using wxpython to create this. here is the code: import wx class SketchWindow(wx.Window): def __init__ (self, parent,ID): wx.Window.__init__(self, parent