Custom wxPython Widget

2007-06-15 Thread Jens Thiede
What is the best source code to read? Any tips; suggestions?

Thanks in advance
Jens Thiede

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Looking for a wxPython GUI builder

2007-06-15 Thread Jens Thiede
On Jun 16, 3:18 am, Dick Moores <[EMAIL PROTECTED]> wrote:
> How about SPE?
>
> Any others?
>
> And which ones do people
> actually use? Commercial or Freeware.
>
> Thanks,
>
> Dick Moores

There's Boa Constructor... (http://boa-constructor.sourceforge.net/
Screenshots). I haven't actually used it though.

-- 
http://mail.python.org/mailman/listinfo/python-list


Metaclass v.s. Property function.

2007-08-11 Thread Jens Thiede
I don't like the property function, usable in the new-style classes,
because having to remember to manage a list of "foo = property(...)"
assignments just plain sucks, so I wrote a metaclass that does things
a little differently. Please have a look and tell me whether this is
useful or impractical. The metaclass is here: http://pastebin.com/m5b06b571
and some simple testcode is here: http://pastebin.com/m382f2ae9.
Notice the first line though.

Thanks for any replies,

Jens Thiede.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Metaclass v.s. Property function.

2007-08-14 Thread Jens Thiede
On Aug 11, 6:06 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Jens Thiede <[EMAIL PROTECTED]> wrote:
> > I don't like the property function, usable in the new-style classes,
> > because having to remember to manage a list of "foo = property(...)"
> > assignments just plain sucks, so I wrote a metaclass that does things
> > a little differently. Please have a look and tell me whether this is
> > useful or impractical. The metaclass is here:
> >http://pastebin.com/m5b06b571and some simple testcode is here:
> >http://pastebin.com/m382f2ae9. Notice the first line though.
>
> Here's something I posted a while back which lets you use property as a
> decorator:
>
>  class C(object):
> def __init__(self, colour):
> self._colour = colour
>
> @property.set
> def colour(self, value):
> self._colour = value
>
> @property.get
> def colour(self):
> return self._colour
>
> @property.delete
> def colour(self):
> self._colour = 'none'
>
> See:http://groups.google.co.uk/group/comp.lang.python/browse_thread/threa...
>
> Whether you like that style is of course a matter of personal opinion.

Thanks, a very simple but a great and more "pythonic" idea.

-- 
http://mail.python.org/mailman/listinfo/python-list