[wxPython] User Definable ICON, Bitmap on TopLeft of the window ?

Hi all,

I just wonder how I can generate, define the Icon,
or Bitmap being used on TopLeft on the main
window within wxpython. A code shnip or a link
would be appreciated. Thank's

markus

···

********************************************************************
** Meng Engineering Telefon 056 222 44 10 **
** Markus Meng Natel 079 230 93 86 **
** Bruggerstr. 21 Telefax 056 222 44 10 **
** CH-5400 Baden Email meng.engineering@bluewin.ch **
********************************************************************
** Theory may inform, but Practice convinces. -- George Bain **

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

I just wonder how I can generate, define the Icon,
or Bitmap being used on TopLeft on the main
window within wxpython. A code shnip or a link
would be appreciated. Thank's

From the demo:

    icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
    self.SetIcon(icon)

where self is a wxFrame. I think you can't use .ico files on wxGTK, but
.xpm files will probably work.

···

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

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

"Robin Dunn" <robin@alldunn.com> writes:

>From the demo:

    icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
    self.SetIcon(icon)

where self is a wxFrame. I think you can't use .ico files on wxGTK, but
.xpm files will probably work.

Any thoughts on adding wrappers for some of the other constructors for
a wxIcon? As it stands, to use this approach a separate, standalone,
copy of the application's .ico file must be used, whereas at least for
a Windows target, the icon is already in the executable for Windows
itself. Being able to create the icon from data already in memory (or
even just a Python file object) would be a nice addition.

···

--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l@fitlinxx.com /
  > FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/

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