differences in layout between Windows Xp and linux gentoo

I noticed cha my application has a different layout between os
microsoft os and linux gentoo.
For example, notice that the edges of wx.window
(style=wx.BORDER_THEME) are not displayed correctly on gentoo.
imho is a graphics library linux problem. Or wrong?

···

--
Fabio
www.fabiospadaro.com

Hi,
from the wxwidget documentation
(http://docs.wxwidgets.org/stable/wx_wxmswport.html):

Note that in wxWidgets 2.9 and above, wxBORDER_THEME will be used on
all platforms to indicate that there should definitely be a border,
whose style is determined by wxWidgets for the current platform.
wxWidgets 2.9 and above will also be better at determining whether
there should be a themed border Because of the requirements of binary
compatibility, this automatic border capability could not be put into
wxWidgets 2.8 except for built-in, native controls.

Maybe this helps.
regards, Enrico

···

At 12.59 01/07/2009 +0200, you wrote:

I noticed cha my application has a different layout between os
microsoft os and linux gentoo.
For example, notice that the edges of wx.window
(style=wx.BORDER_THEME) are not displayed correctly on gentoo.
imho is a graphics library linux problem. Or wrong?
--
Fabio
www.fabiospadaro.com

Hi,
looking for a quick way to print a text I used the code in the wxPyWiki page. Unfortunately in this code I discovered two bugs that I report here, maybe somebody is interested in this code. At the moment I'm not able to edit the wiki page so apologize.

The first one causes a crash after printing few times. In the code of the class

class Printer(wx.Printout):

the last line of

     def Print(self, text, doc_name):

should be written as

self.printer_config = wx.PrintData(prn.GetPrintDialogData().GetPrintData())

This forces the copy of PrintData.

The second one is related to function

     def GetPageInfo(self):

where the line

         maxPage = int(len(self.doc_text.split('\n'))/self.num_lines_per_page)

should be

         maxPage = int(len(self.doc_text.split('\n'))/self.num_lines_per_page) + 1

Regards, Enrico

ricercar@infinito.it wrote:

Hi,
looking for a quick way to print a text I used the code in the wxPyWiki page. Unfortunately in this code I discovered two bugs that I report here, maybe somebody is interested in this code. At the moment I'm not able to edit the wiki page so apologize.

The first one causes a crash after printing few times. In the code of the class

class Printer(wx.Printout):

the last line of

     def Print(self, text, doc_name):

should be written as

self.printer_config = wx.PrintData(prn.GetPrintDialogData().GetPrintData())

This forces the copy of PrintData.

The second one is related to function

     def GetPageInfo(self):

where the line

         maxPage = int(len(self.doc_text.split('\n'))/self.num_lines_per_page)

should be

         maxPage = int(len(self.doc_text.split('\n'))/self.num_lines_per_page) + 1

Regards, Enrico

Hi,

I just added this change to the wiki, I hope you don't mind as you mentioned you have trouble registering.

ricercar@infinito.it wrote:

Hi,
looking for a quick way to print a text I used the code in the wxPyWiki page. Unfortunately in this code I discovered two bugs that I report here, maybe somebody is interested in this code. At the moment I'm not able to edit the wiki page so apologize.

Why not? Just not enough time or is it preventing you from creating a user ID?

···

--
Robin Dunn
Software Craftsman

No, I only have a problem with my slow connection. Next week I will be back at my office so I will have no problem.
Thanks for updating the code.

Best regards, Enrico

···

At 00.33 02/07/2009 +0100, you wrote:

Hi,

I just added this change to the wiki, I hope you don't mind as you
mentioned you have trouble registering.