On 8/28/07, Éjjeli Őrjárat <[EMAIL PROTECTED]> wrote:
> Hi all
> I need some help with icons: how wx.wxIconBudle() works? Does it accept a
> file like this: http://dcpp.extra.hu/toolbar.bmp and can
> cut the each images from it? If yes, how? (I tried, but not with success..

No, the wxIconBundle() is just for a 16x16 and 32x32 icon, typically.
http://www.wxwidgets.org/manuals/stable/wx_wxtoplevelwindow.html#wxtoplevelwindowseticons

To cut out the images you would do. (untested and you'd probably use a for loop)
b = wx.wxBitmap("myimages.png")
b1 = b:GetSubBitmap(wx.wxRect(0, 0, 16, 16))
icon = wx.wxIcon(); icon:CopyFromBitmap(b1)
...

-- If you won't use these again and will generate a lot of them, delete them
icon:delete()
b1:delete()
b:delete()

> :-/) And an another question: is somewhere a homepage where can I find
> applications, written in wxLUA? Many times I need some idea and suggestion,
> and the sample is too few for it... Thanks the answers.

Sorry, none that I know of. Hopefully some others will put them on the
web eventually.

Regards,
    John Labenski
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to