Hmmm, no idea... I've never used any printing functions in wx at all.
Do you use any in FloatCanvas?
At some point, I'll have to read the printing chapter in wxPython In
Action. One of the few chapters I haven't looked at.
> While full syntax-highlighter printing would be nice, I think just
> dumping the buffer to wxHTMEasyPrinting would be a OK.
I've added a ticket: http://trac.flipturn.org/ticket/769
It will have to be more complicated than, say, Editra's printing
because it would need to contain interfaces such that non-wxSTC modes
could also make printouts.
Rob
No, I've had requests, but I've never gotten around to it. I do know
printing can be a pain!
> It will have to be more complicated than, say, Editra's printing
> because it would need to contain interfaces such that non-wxSTC modes
> could also make printouts.
Yes, though if you had some modes just raise an error, saying "I can't
print this mode", for now, that would be a start.
By the way, speaking of other modes, I find I often get a crash when I
try to load binary files. In particular, I've got some files that have
text headers, followed by binary data -- I don't' want to read the
binary data (though I may some day), but it would be nice if it could at
least load so I can see the header.
Let me know if you need a sample.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Yes, something like this. I'm thinking that I'll add some methods in
MajorMode that can be overridden by those modes that can provide print
capability. Otherwise the default action would be to disallow
printing for that mode (and probably not even include the Print option
in the File menu).
Actually, maybe it makes more sense to make it a mixin class that
major modes can implement.
Rob
Rob
Cool! My first print looks great!
Excellent. As long as there are no wrapped lines, it seems to do a
good job. Line wrapping throws a huge monkey wrench in the works and
it doesn't look easily solvable. I'll be posting to the wxPython list
when I get my example code in a better state...
Rob