Paul;
        I think it's a windows oddity (like that's a surprise), because the
windows system I was trying it on is at work.
XP home. I got home, and rebooted my system into windows (XP pro SP3), and
it all worked fine. I'm a full time linux user but keep a windows partition
around for just such an occasion.

I really don't understand how this can be happening.

BTW, under the win xp system at work, Yes...the form icon works just fine.

I will run your suggestion below when I am back in the office tomorrow and
see whats happening.

I haven't been using any app..HomeDirectory or os.getcwd()
Question:
Where would I put this to avoid such issues?
Would it go in the main.py in my apps root directory?

Thanks
Carey


On Tue, Jul 28, 2009 at 2:39 PM, Paul McNett <[email protected]> wrote:

> Carey Gagnon wrote:
> > The cdxml files is as follows:
>
> Thanks. You have <img src="resources/icons/proman_about.png"> which
> should work fine. Dabo will try to resolve that into a proper url, which
> is probably failing, maybe because app.HomeDirectory or os.getcwd()
> isn't at the root of your application for whatever reason.
>
> Let's see if the image url function is finding the image (I expect it
> isn't). Put this code into one of your form methods, such as afterInit:
>
> {{{
> ## *!* ## Dabo Code ID: dForm-top
> def afterInit(self):
>     self.MenuBar = None
>     self.Icon = "resources/icons/proman22x22.ico"
>      import os
>     import dabo.ui
>     print "app.HomeDirectory, os.getcwd():"
>     print self.Application.HomeDirectory, os.getcwd()
>     print "test getImagePath:",
> dabo.ui.getImagePath("resources/icons/proman_about.png")
>     print "test getImageURL:",
> dabo.ui.getImagePath("resources/icons/proman_about.png", url=True)
> }}}
>
> I assume the form's Icon is getting displayed properly?
>
> Paul
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to