[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Needed: Real-world examples for Python's Cooperative Multiple
From:       Sol Toure <sol2ray () gmail ! com>
Date:       2010-11-30 15:03:26
Message-ID: AANLkTinpuKn3ZbCz-FYKLieRiFCFXJZ6r_Oq-uypxZRA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Most of the examples presented here can use the "decorator pattern" instead.
Especially the window system


On Mon, Nov 29, 2010 at 5:27 PM, Gregory Ewing
<greg.ewing@canterbury.ac.nz>wrote:

> Paul Rubin wrote:
>
>  The classic example though is a window system, where you have a "window"
>> class, and a "scroll bar" class, and a "drop-down menu" class, etc. and
>> if you want a window with a scroll bar and a drop-down menu, you inherit
>> from all three of those classes.
>>
>
> Not in any GUI library I've ever seen. Normally there would
> be three objects involved in such an arrangement, a Window,
> a ScrollBar and a DropDownMenu, connected to each other in
> some way.
>
> --
> Greg
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.afroblend.com
African news as it happens.

[Attachment #5 (text/html)]

Most of the examples presented here can use the &quot;decorator pattern&quot; \
instead. Especially the window system<br><br><br><div class="gmail_quote">On Mon, Nov \
29, 2010 at 5:27 PM, Gregory Ewing <span dir="ltr">&lt;<a \
href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Paul \
Rubin wrote:<br> <br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px \
solid rgb(204, 204, 204); padding-left: 1ex;"> The classic example though is a window \
system, where you have a &quot;window&quot;<br> class, and a &quot;scroll bar&quot; \
class, and a &quot;drop-down menu&quot; class, etc. and<br> if you want a window with \
a scroll bar and a drop-down menu, you inherit<br> from all three of those \
classes.<br> </blockquote>
<br></div>
Not in any GUI library I&#39;ve ever seen. Normally there would<br>
be three objects involved in such an arrangement, a Window,<br>
a ScrollBar and a DropDownMenu, connected to each other in<br>
some way.<br><font color="#888888">
<br>
-- <br>
Greg</font><div><div></div><div class="h5"><br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" \
target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br> \
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a \
href="http://www.afroblend.com" \
target="_blank">http://www.afroblend.com</a><br>African news as it happens.<br><br>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic