Antwort: [wxPython] Re: wxPy use double memory of pyGtk

Hi

Let me try to defend Gtk+ a little ...

I believe it has been ported to MSW, but I doubt it would look or act neary
as nice as wxPython on MSW.

Gtk+ has theme-support on MSW ... I think wxPython has not.

You would have no native widgets, no native LnF, and the general flakyness
of something designed for a X and Unix environment pounded to fit on a
win32 environment.

Certainly most non-programmers prefer to get native LnF on their windows
systems.
OTOH I'd prefer to have GTKs "non-MS" file-dialogs instead of wxPythons
"bug-causing" file-dialogs.

Otherwise it seems very non-OO to me, and that would probably get
in the way on larger apps.

In my opinion the opposite is true. In wxPython we have three _different_
class hierarchies. (c++, metamodel, python) Many methods are virtual on
the c++-level but final on the python level. Several interfaces were changed
in order to create the Python port. It's often impossible to override methods
from a base class.

In wxGtk there are two simmilar class hierarchies. (metamodel, python)
The design allowed developers to create ports to dozens of languages with
minimal interface changes.

pyGtk features:

Every gtk-object has a dictionary for user-defined objects.
In wxPython _some_ objects use _different_ ways to store user objects.
(SetPyData in wxTreeItems / "long" in wxListCtrls / wxListBox has neither)

Strings with event-names are used in order to connect events with functions
in gtk ... this way the python wrapper doesn't have to be changed when the
gtk library changes a little.

I don't have to write really ugly code in order to catch exceptions
thrown in event handlers. :-/

IMHO it's significantly easier to get useful warnings from gtk.

pyGtk flaws:

The windows ports of Gtk+ that I tested were based on "unstable" gtk+
versions (1.3.x) where unicode support was no longer optional. :-/

All widgets of Gtk+ are quite powerfull and of high quality, but it's
still a subset of the widgets offered by wxPython. The situation is
much better for c programmers that assume that a certain set of
gnome-standardized libraries will be preinstalled by the user.

Bye

(PS: Robin, please consider removing both calls to XpmFree()
from msw/xpmhand.cpp. Calling XpmFreeAttributes() is sufficient.)

MEMO 03/14/01 15:17:21 (2.48 KB)

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

(PS: Robin, please consider removing both calls to XpmFree()
from msw/xpmhand.cpp. Calling XpmFreeAttributes() is sufficient.)

This isn't my code, so please add a patch in the PatchManager at
http://sourceforge.net/tracker/?group_id=9863&atid=309863 with an
explaination of why.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Is it possible to write a windows screen saver in python? I have a
program that I wrote in pyOpenGL that I would like to use as a screen
saver. I was told that maybe I would need to use wxWindows in order to
get it working as a screen saver. Is there any way that I can do what I
am wanting to do?

···

--------------------------------------------------------------------------
C. Porter Bassett porter@et.byu.edu http://www.cporterbassett.com
--------------------------------------------------------------------------
"Pretend like this is a really witty saying." - Anonymous
--------------------------------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

There's nothing specific in Python or wxPython that will let
you do that. There are Windows screensavers that will
let you run "any" .exe file and show it as a screensaver.

So, you can make your wxPython app then use Gordon's
installer to make in an .exe, then have one of the free
screensavers that run .exe.

An example of an .exe made with Gordon's installer is
the Image Squeezer at:

http://starship.python.net/crew/jjkunce/

(So you can get a feel for the number of files/ size etc.)

···

On Wednesday 14 March 2001 10:17 am, you wrote:

Is it possible to write a windows screen saver in python? I have a
program that I wrote in pyOpenGL that I would like to use as a screen
saver. I was told that maybe I would need to use wxWindows in order to
get it working as a screen saver. Is there any way that I can do what I
am wanting to do?

--------------------------------------------------------------------------
C. Porter Bassett porter@et.byu.edu http://www.cporterbassett.com

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Is it possible to write a windows screen saver in python? I have a
program that I wrote in pyOpenGL that I would like to use as a screen
saver. I was told that maybe I would need to use wxWindows in order to
get it working as a screen saver. Is there any way that I can do what I
am wanting to do?

IIRC, screen savers are just DLLs that expose a certain interface. You
could probably create a simple DLL that is a shell that implements the right
interface for screen savers and then delegates everything to Python code...

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Here's one of those freebie .exe screensavers:

http://www.shareware.about.com/compute/shareware/library/screensavers/bl_exe_screen_saver_screensaver_tool.htm

"This is not your typical screensaver utility. EXE Screen Saver allows you to
run any Windows executable module as your screen saver. It can run your
Macromedia Director projectors as a screen saver as well as anything else
you've got with an .exe file extension. And best of all... it's FREE! "

···

On Wednesday 14 March 2001 10:35 am, you wrote:

There's nothing specific in Python or wxPython that will let
you do that. There are Windows screensavers that will
let you run "any" .exe file and show it as a screensaver.

So, you can make your wxPython app then use Gordon's
installer to make in an .exe, then have one of the free
screensavers that run .exe.

An example of an .exe made with Gordon's installer is
the Image Squeezer at:

http://starship.python.net/crew/jjkunce/

(So you can get a feel for the number of files/ size etc.)

On Wednesday 14 March 2001 10:17 am, you wrote:
> Is it possible to write a windows screen saver in python? I have a
> program that I wrote in pyOpenGL that I would like to use as a screen
> saver. I was told that maybe I would need to use wxWindows in order to
> get it working as a screen saver. Is there any way that I can do what I
> am wanting to do?
>
> -------------------------------------------------------------------------
>- C. Porter Bassett porter@et.byu.edu http://www.cporterbassett.com

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Do you know of where to find any more like this? The link to download it
is broken, and I have not been able to find it anywhere else, nor have I
been able to find any others.

···

--------------------------------------------------------------------------
C. Porter Bassett porter@et.byu.edu http://www.cporterbassett.com
--------------------------------------------------------------------------
"Pretend like this is a really witty saying." - Anonymous
--------------------------------------------------------------------------

On Wed, 14 Mar 2001, Rob Cakebread wrote:

Here's one of those freebie .exe screensavers:

http://www.shareware.about.com/compute/shareware/library/screensavers/bl_exe_screen_saver_screensaver_tool.htm

"This is not your typical screensaver utility. EXE Screen Saver allows you to
run any Windows executable module as your screen saver. It can run your
Macromedia Director projectors as a screen saver as well as anything else
you've got with an .exe file extension. And best of all... it's FREE! "

On Wednesday 14 March 2001 10:35 am, you wrote:
> There's nothing specific in Python or wxPython that will let
> you do that. There are Windows screensavers that will
> let you run "any" .exe file and show it as a screensaver.
>
> So, you can make your wxPython app then use Gordon's
> installer to make in an .exe, then have one of the free
> screensavers that run .exe.
>
> An example of an .exe made with Gordon's installer is
> the Image Squeezer at:
>
> http://starship.python.net/crew/jjkunce/
>
> (So you can get a feel for the number of files/ size etc.)
>
> On Wednesday 14 March 2001 10:17 am, you wrote:
> > Is it possible to write a windows screen saver in python? I have a
> > program that I wrote in pyOpenGL that I would like to use as a screen
> > saver. I was told that maybe I would need to use wxWindows in order to
> > get it working as a screen saver. Is there any way that I can do what I
> > am wanting to do?
> >
> > -------------------------------------------------------------------------
> >- C. Porter Bassett porter@et.byu.edu http://www.cporterbassett.com
>
> _______________________________________________
> wxPython-users mailing list
> wxPython-users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

http://download.cnet.com/downloads/0-1461932-100-1487252.html?tag=st.dl.10000-103-1.lst-7-1.1487252

···

On Wednesday 14 March 2001 11:14 am, you wrote:

Do you know of where to find any more like this? The link to download it
is broken, and I have not been able to find it anywhere else, nor have I
been able to find any others.

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users