GUIs - A Modest Proposal

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Jun 10 04:28:25 EDT 2010


Brian Blais wrote:

> In this whole discussion, I haven't seen anyone mention wax (http:// 
> zephyrfalcon.org/labs/wax_primer.html)

Just had a quick look at that. In the third example code box:

   def Body(self):
       ^^^^
     self.textbox = TextBox(self, multiline=1, wrap=0)
     self.AddComponent(self.textbox)
          ^^^^^^^^^^^^

Here's something unpythonic already: a couple of non-pep-8-compliant
method names.

And a bit further down:

     self.textbox.SetFont(FIXED_FONT)
                  ^^^^^^^

Using a setter method instead of a property.

So while it's quite likely better than raw wxPython, it fails the
pythonicity test for me.

-- 
Greg



More information about the Python-list mailing list