easy print

Under ubuntu 10.10.
how can i print in easy way ?

I need to print a Text string, and draw rectangle. I don't need to print table.

Thanks

If you can use wx's simple HTML support to display your content then you can use wx.html.HtmlEasyPrinting to print it. Otherwise you'll probably need to use the print framework as shown in the demo.

···

On 2/21/11 7:23 AM, Ale Ghelfi wrote:

Under ubuntu 10.10.
how can i print in easy way ?

I need to print a Text string, and draw rectangle. I don't need to print
table.

--
Robin Dunn
Software Craftsman

ok, i find the code sample of Easy Printing on http://wiki.wxpython.org/Printing

But in which way can i draw a rectangle by wx.html.HtmlEasyPrinting?
Thank you!

···

On 21/02/2011 18:45, Robin Dunn wrote:

On 2/21/11 7:23 AM, Ale Ghelfi wrote:

Under ubuntu 10.10.
how can i print in easy way ?

I need to print a Text string, and draw rectangle. I don't need to print
table.

If you can use wx's simple HTML support to display your content then you
can use wx.html.HtmlEasyPrinting to print it. Otherwise you'll probably
need to use the print framework as shown in the demo.

You use HTML.

something like this : “

This is a rectangle!

note: this isn’t exactly what your looking for, but it can be easily modified to fit your purpose

···


Hi, I will kill all ads in google gmail.
They will all be dead and gone for all my emails to you. HA HA bye bye ads I just massacred you!!!

Hi,

You use HTML.
something like this : "<div
style="background-color:yellow;width:500px;height:100px;border:1px solid
#000">This is a rectangle!</div>"
note: this isn't exactly what your looking for, but it can be easily
modified to fit your purpose

wxHTML doesn't support CSS (i.e the style attribute)

You could use the html table tag to create a rectangle.

<table border="1">
<tr>
<td>Hello World</td>
</tr>
</table>

Cody

···

On Wed, Feb 23, 2011 at 10:20 AM, Micah Nordland <mpnordland@gmail.com> wrote: