Icon and logo for wxPython

The default icon of a wx.Frame is the Windows logo on my win platform.
I do not like it or more precisely I do not like to see it. Will it be possible
to change this and have a default wxPython icon ? Like tcl-tk does.
(I know, wx.Frame.SetIcon...).

Related to this, is there any "official" wxPython logo?

Jean-Michel Fauth, Switzerland

I am creating an application for my company that handles all of the navigation for a set of laptops we use. These laptops have one purpose and we do not want the users to do anything else. I have created an application that simply displays three buttons in a frame that give the user the three options available. I have been able to remove this application from the taskbar but was wondering if there was also a way to keep the application from being closed, such as using Alt+F4. I know this probably goes against most good design principles, but for this unique situation I am in need of such functionality. FYI, I am using Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

Lewis

What you really want is to run the application on the laptop as if it
were a kiosk. Then there will be no Explorer at all-just your
application.

There was an article in Dr. Dobbs in the last year or so about doing
this by creating a separate Windows desktop, and setting your
application to be the "shell" (instead of explorer.exe) . You'll need
to use the 'ctypes' module to call the appropriate Win32 functions.

If you need more information, or need me to dig up the article, let me
know.

···

On Tue, Aug 31, 2004 at 12:50:27PM -0500, Lewis Franklin wrote:

I am creating an application for my company that handles all of the
navigation for a set of laptops we use. These laptops have one purpose
and we do not want the users to do anything else. I have created an
application that simply displays three buttons in a frame that give the
user the three options available. I have been able to remove this
application from the taskbar but was wondering if there was also a way
to keep the application from being closed, such as using Alt+F4. I know
this probably goes against most good design principles, but for this
unique situation I am in need of such functionality. FYI, I am using
Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

--
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws

No changes need to be made in your program at all under 2K or XP. You
need to define some security settings for that program and for the
account(s) that it will be running under.

You can set the program up in the admin console so that it requires a
certain security level to close the app, even from the task manager. I
am a bit fuzzy on the details (it's been a while since I did this) but
a bit of determined digging should get you there.

For example, on our company's boxes, our virus protection tools and
certain "spyware" (I insist on calling it that, our IT insists it
ain't) apps are set up that way.

···

On Tue, 31 Aug 2004 12:50:27 -0500, Lewis Franklin <hcslmf@texlife.com> wrote:

I am creating an application for my company that handles all of the
navigation for a set of laptops we use. These laptops have one purpose
and we do not want the users to do anything else. I have created an
application that simply displays three buttons in a frame that give the
user the three options available. I have been able to remove this
application from the taskbar but was wondering if there was also a way
to keep the application from being closed, such as using Alt+F4. I know
this probably goes against most good design principles, but for this
unique situation I am in need of such functionality.

--
Kindest personal regards,

    Jeff

Catch the EVT_CLOSE event and ignore it.

class MyFrame(wx.Frame):
    def __init__(...):
        ...
        self.Bind(wx.EVT_CLOSE, self.OnClose)

    def OnClose(self, event):
        pass

···

On Tue, 2004-08-31 at 10:50, Lewis Franklin wrote:

I am creating an application for my company that handles all of the
navigation for a set of laptops we use. These laptops have one purpose
and we do not want the users to do anything else. I have created an
application that simply displays three buttons in a frame that give the
user the three options available. I have been able to remove this
application from the taskbar but was wondering if there was also a way
to keep the application from being closed, such as using Alt+F4. I know
this probably goes against most good design principles, but for this
unique situation I am in need of such functionality. FYI, I am using
Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

--
Cliff Wells <clifford.wells@comcast.net>

Jean-Michel Fauth wrote:

The default icon of a wx.Frame is the Windows logo on my win platform.
I do not like it or more precisely I do not like to see it. Will it be possible to change this and have a default wxPython icon ? Like tcl-tk does.
(I know, wx.Frame.SetIcon...).

Many years ago wxFrame did automatically set an icon (you can see it in the first image at http://wxpython.org/screenshots.php) but that was removed for some reason I don't remember.

In order to do it again the C++ code would need to be put back and the icon added to the resource file, so it would affect all wx apps, not just wxPython.

Related to this, is there any "official" wxPython logo?

I've thought about doing something similar to the images I used for the T-shirts and such, but havn't yet.

http://www.cafepress.com/wxPython

···

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

Lewis Franklin wrote:

I am creating an application for my company that handles all of the navigation for a set of laptops we use. These laptops have one purpose and we do not want the users to do anything else. I have created an application that simply displays three buttons in a frame that give the user the three options available. I have been able to remove this application from the taskbar but was wondering if there was also a way to keep the application from being closed, such as using Alt+F4. I know this probably goes against most good design principles, but for this unique situation I am in need of such functionality. FYI, I am using Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

You can catch the frame's EVT_CLOSE event and Veto() it.

···

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

The wx icon is quite nice and would rather have that than the default windows thingy.
:slight_smile:

···

On Tue, 31 Aug 2004 11:57:36 -0700, Robin Dunn <robin@alldunn.com> wrote:

Jean-Michel Fauth wrote:

The default icon of a wx.Frame is the Windows logo on my win platform.
I do not like it or more precisely I do not like to see it. Will it be possible to change this and have a default wxPython icon ? Like tcl-tk does.
(I know, wx.Frame.SetIcon...).

Many years ago wxFrame did automatically set an icon (you can see it in the first image at http://wxpython.org/screenshots.php) but that was removed for some reason I don't remember.

In order to do it again the C++ code would need to be put back and the icon added to the resource file, so it would affect all wx apps, not just wxPython.

--
Peter Damoc
Hacker Wannabe

Quoting Robin Dunn <robin@alldunn.com>:

Lewis Franklin wrote:
> I am creating an application for my company that handles all of the
> navigation for a set of laptops we use. These laptops have one purpose
> and we do not want the users to do anything else. I have created an
> application that simply displays three buttons in a frame that give the
> user the three options available. I have been able to remove this
> application from the taskbar but was wondering if there was also a way
> to keep the application from being closed, such as using Alt+F4. I know
> this probably goes against most good design principles, but for this
> unique situation I am in need of such functionality. FYI, I am using
> Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

You can catch the frame's EVT_CLOSE event and Veto() it.

A quick CTRL+SHIFT+ESC and an end process will still kill it.
I guess Jeffs or Tims solutions are the only way to really make certain
the user can't close the app, unless somebody knows of a way to stop
users from starting the task manager.

Regards
   Adi

No need to reinvent the wheel. Look at:

maybe you can configure it to do exactly what you want your app to do.

···

On Tue, 31 Aug 2004 12:50:27 -0500, Lewis Franklin <hcslmf@texlife.com> wrote:

I am creating an application for my company that handles all of the navigation for a set of laptops we use. These laptops have one purpose and we do not want the users to do anything else. I have created an application that simply displays three buttons in a frame that give the user the three options available. I have been able to remove this application from the taskbar but was wondering if there was also a way to keep the application from being closed, such as using Alt+F4. I know this probably goes against most good design principles, but for this unique situation I am in need of such functionality. FYI, I am using Python 2.2, wxPython 2.5.2.7 on WindowsXP Pro.

--
Peter Damoc
Hacker Wannabe