icons?

I'm trying to change my programs frame/taskbar icon.

in the frame i create an icon wxIcon ( 'icon.xpm', wxBITMAP_TYPE_XPM )
then i try to set it with frame.SetIcon ( icon )

Doesn't work but doesn't give an error. Any suggestions what I'm doing
wrong?

Michael wrote:

I'm trying to change my programs frame/taskbar icon.

in the frame i create an icon wxIcon ( 'icon.xpm', wxBITMAP_TYPE_XPM )
then i try to set it with frame.SetIcon ( icon )

Doesn't work but doesn't give an error. Any suggestions what I'm doing
wrong?

Is the icon 32x32 in size?

···

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

I'm curious if anyone has written any specializations of things like wxGrid for doing database entry. I'm getting very frustrated with MS Access apps, and would like to build database apps using wxPython and open-source databases, but miss some of the functionality that Access provides..

--bob

Yes, it is 32x32. Standard output by Gimp. Anything else that could be
wrong?

···

Is the icon 32x32 in size?

Robert Olson írta:

I'm curious if anyone has written any specializations of things like wxGrid for doing database entry. I'm getting very frustrated with MS Access apps, and would like to build database apps using wxPython and open-source databases, but miss some of the functionality that Access provides..

Hello,

    What kind of funcionality are missed? I've written wxPython applications that connect to postgreSQL databases. Regulary these applications work on both Debian Linux and win98. Many years ago some msAccess application were written by me (I was young & unexperienced :-))), and I think: comparing ms access there are no "missing funcionality" in wxPython. You can create very nice and useful GUI in wxPython for users in order to access databases. Take a look at the RowColSizer (my favourite sizer) example in the wxpython-2.3.3.1 Demo.

    Best regards,

            Peter

  What kind of funcionality are missed? I've written wxPython applications that connect to postgreSQL databases. Regulary these applications work on both Debian Linux and win98. Many years ago some msAccess application were written by me (I was young & unexperienced :-))), and I think: comparing ms access there are no "missing funcionality" in wxPython. You can create very nice and useful GUI in wxPython for users in order to access databases. Take a look at the RowColSizer (my favourite sizer) example in the wxpython-2.3.3.1 Demo.

I'm not talking about the basic functionality not being there (I know it is). Database apps are more than just layout; I'm talking about things like this grid is bound to this table and when updates are made to the grid cells, the backing table is updated. There is some nontrivial logic involved in making such a thing reliable; I'm wondering if there are libraries available already to do that.

--bob

Robert Olson wrote:

I'm talking about things
like this grid is bound to this table and when updates are made to the grid
cells, the backing table is updated. There is some nontrivial logic
involved in making such a thing reliable; I'm wondering if there are
libraries available already to do that.

Check out the GNU Enterpise project. They are working on a complete
package of business software, including forms-database connections, and,
of course they are using wxPython to do it!

See this quote from the technical FAQ:

"Also, one of the primary draws of Forms is its fully data-aware widget
set."

http://www.gnuenterprise.org/project/what.php

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Michael wrote:

Yes, it is 32x32. Standard output by Gimp. Anything else that could be
wrong?

Is the icon 32x32 in size?

What platform and version? If wxGTK, which WindowManager are you using?

···

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

Is that real software or vapourware?

···

At 11:51 2002-11-18 -0800, Chris Barker wrote:

Check out the GNU Enterpise project. They are working on a complete
package of business software, including forms-database connections, and,
of course they are using wxPython to do it!

--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se

Magnus Lycka wrote:

>Check out the GNU Enterpise project.

Is that real software or vapourware?

I don'
t have a need for it, and thus have not downloaded it. From the website,
it looks like the project as a whole is pretty much Vaporware, but
everything else they are hoping to do needs the Forms tool, so it looks
like that is at least something worth looking at and perhaps borrowing
code form (if GPL is OK with you)

http://www.gnuenterprise.org/project/status.php

-Chris

···

At 11:51 2002-11-18 -0800, Chris Barker wrote:

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

In Windows XP. I'd like the icons to work in X also (which is why I choose
the xpm format) but am testing in XP.

If I might suggest a nice addition to wxPython it'd be a version of
wxPython that could take PNG images and convert them into icons suitable
to the platform. My skill isn't such that I could do that yet or else I
would.

···

> Yes, it is 32x32. Standard output by Gimp. Anything else that could be
> wrong?
>
>
>>Is the icon 32x32 in size?
>

What platform and version? If wxGTK, which WindowManager are you using?

Check the wxPython/tools directory for a script called
    img2py.py
it creates icons as bitmap data in Python files. Those should work on any platform. As a note, that uses XPM-format data, and works fine on Win2k and Win98.

Enjoy,
Mike

Michael wrote:

···

In Windows XP. I'd like the icons to work in X also (which is why I choose
the xpm format) but am testing in XP.

If I might suggest a nice addition to wxPython it'd be a version of
wxPython that could take PNG images and convert them into icons suitable
to the platform. My skill isn't such that I could do that yet or else I
would.

Yes, it is 32x32. Standard output by Gimp. Anything else that could be
wrong?

Is the icon 32x32 in size?
       

What platform and version? If wxGTK, which WindowManager are you using?
   
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/

The code in the attached file is what I use to do what you want.

Regards,
  Leazen

Michael wrote:

IconHelper.py (409 Bytes)

···

In Windows XP. I'd like the icons to work in X also (which is why I choose
the xpm format) but am testing in XP.

If I might suggest a nice addition to wxPython it'd be a version of
wxPython that could take PNG images and convert them into icons suitable
to the platform. My skill isn't such that I could do that yet or else I
would.

Yes, it is 32x32. Standard output by Gimp. Anything else that could be
wrong?

Is the icon 32x32 in size?

What platform and version? If wxGTK, which WindowManager are you using?

Mike C. Fletcher wrote:

Check the wxPython/tools directory for a script called
   img2py.py
it creates icons as bitmap data in Python files. Those should work on any platform. As a note, that uses XPM-format data, and works fine on Win2k and Win98.

Actually, as of 2.3.3 it is using PNG internally as it's smaller and quicker to convert from the embedded resource to an image object.

···

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

It is real software, making a steady progress over the past 12 months I have
been watching it. Not yet ready for prime time, but not too far away either.

Horst

···

On Tue, 19 Nov 2002 09:41, Magnus Lycka wrote:

At 11:51 2002-11-18 -0800, Chris Barker wrote:
>Check out the GNU Enterpise project. They are working on a complete
>package of business software, including forms-database connections, and,
>of course they are using wxPython to do it!

Is that real software or vapourware?