On Tue, Dec 3, 2013 at 7:14 PM, Terry Brown <[email protected]> wrote:
> Below is a simple Qt program that opens a window with text at 14 px and
> 14 pt. Maybe anyone running Win 7 can try it and see if the 14pt text
> seems large. Mac. would be interesting too.
>
> So because Leo doesn't really run on small devices with very small
> pixels, I think 14px will usually be acceptable, whereas 14pt may vary
> greatly - completely the opposite of what you'd expect, but what I'm
> seeing so far.
>
[snip]
You can run this from Leo, with the following changes:
old:
app = QtGui.QApplication(sys.argv)
new:
app = g.app.gui.qtApp
old:
w.show()
app.exec_()
new:
g.app.gui.ekr_temp_window = w
# Keep a reference so the window stays visible.
w.show()
This is a general technique worth knowing.
BTW, imo the 14pt is both "correct" and "what is intended". It's what I
use.
EKR
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.