Hi all,
I am very new to wxPython (and wxWidgets) and am trying it out. So
far so good apart from printing. According to the wiki [1] the easy
way to print is by using HtmlEasyPrinting. Unfortunately I can't make
that work on my machine. I have tried the Printer class defined in
[1] and I get a popup with the following message:
Warning
HTML pagination algorithm generated more than the allowed
maximum number of pages and it can't continue any longer!
If I preview the generated file it is made of hundreds of blank pages.
Note that I am just calling printer.Print("Hello", "Header").
Various google searches have yielded no mention of this problem at
all. I have fiddled with the Printer class but to no avail. Being so
new to wxPython I don't really know how else to investigate the
problem.
These are the versions I am using:
Mac os x 10.5.6
Python 2.5.1 (stock os x python)
wxPython 2.8.4.0 (AFAIK, comes with the os)
Has anyone encoutered this problem? Anyone has some simple code that
I could try out to print something? Any help would be appreciated.
[1] http://wiki.wxpython.org/Printing
···
--
Arnaud
I have tried to create a minimal app that generates this problem:
--------------------8<----------------------
import wx
from wx.html import HtmlEasyPrinting
app = wx.App()
printer = HtmlEasyPrinting()
printer.PrintText("Hello", "Title")
app.MainLoop()
--------------------8<----------------------
This prints a page with the word "Hello" on my GNU/Linux box (Python
2.5.2, wxpython 2.8.8.0) but it generates the error described above in
mac os 10.5.6.
Any hints? I dare not utter the usual newbie "Is this a bug" question ![:slight_smile: :slight_smile:](https://discuss.wxpython.org/images/emoji/apple/slight_smile.png?v=12)
···
2009/1/7 Arnaud Delobelle <arnodel@googlemail.com>:
Hi all,
I am very new to wxPython (and wxWidgets) and am trying it out. So
far so good apart from printing. According to the wiki [1] the easy
way to print is by using HtmlEasyPrinting. Unfortunately I can't make
that work on my machine. I have tried the Printer class defined in
[1] and I get a popup with the following message:
Warning
HTML pagination algorithm generated more than the allowed
maximum number of pages and it can't continue any longer!
If I preview the generated file it is made of hundreds of blank pages.
Note that I am just calling printer.Print("Hello", "Header").
Various google searches have yielded no mention of this problem at
all. I have fiddled with the Printer class but to no avail. Being so
new to wxPython I don't really know how else to investigate the
problem.
These are the versions I am using:
Mac os x 10.5.6
Python 2.5.1 (stock os x python)
wxPython 2.8.4.0 (AFAIK, comes with the os)
Has anyone encoutered this problem? Anyone has some simple code that
I could try out to print something? Any help would be appreciated.
[1] http://wiki.wxpython.org/Printing
--
Arnaud
Hi all,
I am very new to wxPython (and wxWidgets) and am trying it out. So
far so good apart from printing. According to the wiki [1] the easy
way to print is by using HtmlEasyPrinting. Unfortunately I can't make
that work on my machine.
[...]
These are the versions I am using:
Mac os x 10.5.6
Python 2.5.1 (stock os x python)
wxPython 2.8.4.0 (AFAIK, comes with the os)
[...]
This prints a page with the word "Hello" on my GNU/Linux box (Python
2.5.2, wxpython 2.8.8.0) but it generates the error described above in
mac os 10.5.6.
Installing wxpython 2.8.9.1 on the macos x machine solved the problem ![:slight_smile: :slight_smile:](https://discuss.wxpython.org/images/emoji/apple/slight_smile.png?v=12)
···
On 7 Jan 2009, at 20:36, Arnaud Delobelle wrote:
2009/1/7 Arnaud Delobelle <arnodel@googlemail.com>:
--
Arnaud
Arnaud Delobelle wrote:
This prints a page with the word "Hello" on my GNU/Linux box (Python
2.5.2, wxpython 2.8.8.0) but it generates the error described above in
mac os 10.5.6.
Installing wxpython 2.8.9.1 on the macos x machine solved the problem ![:slight_smile: :slight_smile:](https://discuss.wxpython.org/images/emoji/apple/slight_smile.png?v=12)
Thanks for reporting back. I'm still a newbie to wxPython myself, and I was very puzzled by your report -- glad to hear that it's working in the latest version.
Best,
- Joe