(I'm resending this because it was rejected on the list the first time.) > From: Christopher Barker [mailto:[email protected]] > Sent: Tuesday, July 28, 2009 3:38 PM > To: Slaughter, Elliott; Mailing List for the wxPython Float Canvas. > Subject: Re: FloatCanvas: Passing styles through the FloatCanvas > constructor? > > > I've been using your FloatCanvas for a little project of mine, and > have > > been fairly satisfied with the quality of the module. > > I'm glad it's working for you -- can you tell me more about what you > are doing? I like to know how it's been used.
I'm working on a sort-of graph editor. So I'm using it mainly as a convenience so I don't have to write custom widgets myself. (And the ability to do e.g. splines is very nice.) > > One issue I ran into is that I wanted to handle enter and tab keys, > but > > couldn't pass the wx.WANTS_CHARS style to the underlying Panel > through > > the FloatCanvas constructor. The following patch works for me > (although > > I don't suggest that you apply it as it changes the default > behavior). > > Yes, I"m not sure I'd want that as a default. > > > Is there a reason why you don't provide a style keyword for the > > FloatCanvas constructor? > > an oversight -- I've just added **kwargs, so that it, and others could > get passed through. [... snip ...] > Another possible solution is to use > > wxWindow::SetWindowStyleFlag > > to set a style later on. It apparently doesn't work for all styles, > but it may be worth a try for this. Thanks. Your second suggestion works for me. (I'm sure the first one does too, but I'm probably not going to move to the SVN version of floatcanvas to see the change.) _______________________________________________ FloatCanvas mailing list [email protected] http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
