The cdxml files is as follows:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dForm code-ID="dForm-top" Name="dForm" Caption="Project Management - About"
SaveRestorePosition="False" Top="160" Height="450" Width="500"
designerClass="DesForm" Left="350">
<dSizer SlotCount="1" designerClass="LayoutSizer"
Orientation="Vertical">
<dPanel sizerInfo="{'HAlign': 'Left', 'VAlign': 'Top'}"
designerClass="controlMix">
<dSizer SlotCount="2" designerClass="LayoutSizer"
Orientation="Vertical">
<dHtmlBox code-ID="dHtmlBox-dPanel" sizerInfo="{}"
designerClass="controlMix" VerticalScroll="False"></dHtmlBox>
<dButton code-ID="dButton-dPanel" Caption="OK"
sizerInfo="{'HAlign': 'Center'}" designerClass="controlMix"></dButton>
</dSizer>
</dPanel>
</dSizer>
</dForm>
And the -code.py file is as follows:
# -*- coding: utf-8 -*-
### Dabo Class Designer code. You many freely edit the code,
### but do not change the comments containing:
### 'Dabo Code ID: XXXX',
### as these are needed to link the code to the objects.
import datetime
## *!* ## Dabo Code ID: dHtmlBox-dPanel
def getAboutProgram(self):
return """<html>
<body bgcolor="#EBECEC">
<table>
<tr>
<td rowspan="2" width="55"><img
src="resources/icons/proman_about.png"></td>
<td>Project Management is a personal project of Carey Gagnon, geared
towards a particular niche construction market.
<br>
It is written in python using the <a href="http://www.dabodev.com">Dabo
Framework</a>, which is written on top of wx pwthon.
</td>
</tr>
<tr>
<td>Project Management is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
</tr>
<tr>
<td colspan="2">
Project Management is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
<br><br>
You should have received a copy of the GNU General Public License
along with this program. If not, see <a href="http://www.gnu.org/licenses/">
http://www.gnu.org/licenses/</a>.
<br><br>
Copyright © %s Carey Gagnon <a href="mailto:
[email protected]">[email protected]</a></td>
</tr>
</table>
</body>
</html>
""" % datetime.date.today().year
def initProperties(self):
self.OpenLinksInBrowser = True
self.Source = self.getAboutProgram()
self.BorderResizable = False
self.ShowMaxButton = False
## *!* ## Dabo Code ID: dForm-top
def afterInit(self):
self.MenuBar = None
self.Icon = "resources/icons/proman22x22.ico"
## *!* ## Dabo Code ID: dButton-dPanel
def onHit(self, evt):
self.Form.close()
Thanks again
Carey
On Tue, Jul 28, 2009 at 11:14 AM, Paul McNett <[email protected]> wrote:
> Carey Gagnon wrote:
> > Again I want to thank the dabo dev team for a wonderful frame work. I am
> > well on my way to creating the small app I've been itching to do.
> >
> > I've come across an issue with displaying images in a dHtmlBox under Win
> XP
> > Pro SP2. I am using it as an "About this program" popup.
> > I have put the image I want to display in a folder called icons under
> the
> > resources folder in my main app directory.
> >
> > Under Linux the image displays perfectly, but under windows all I get is
> the
> > broken image thing.
> >
> > Any insight would be greatly appreciated.
>
> Can you please show us the code that defines and sets the properties for
> the dHtmlBox control?
>
> 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]