Implicit initialization is EVIL!

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Jul 6 16:32:38 CEST 2011


rantingrick wrote:

> If you design a GRAPHICAL user interface, then once the GRAPHICAL part
> is removed (window), why do need the main code to stick around? 

Open your mind to ideas that go beyond your simple window-centric paradigm!
There is more to graphical user interfaces than windows!

In the Mac OS GUI, an application can have a menubar and no windows. Windows
come and go as needed, but the menubar stays until the users quits the
application.

In the Unix/Linux world, there is a graphical application called xkill which
has no menus and no windows, all it has is a mouse cursor! No, it does not
run in the background: it is a foreground app.

An extreme case, but telling. There is no absolute need for any windows at
all, let alone for one privileged window to rule all the others.


-- 
Steven




More information about the Python-list mailing list