I want to learn about PyQt and leo's qtGui.  As a first step, I'm
trying to execute a script from within a leo body:

from PyQt4 import QtGui
w = QtGui.QWidget()
w.resize(250, 150)
w.move(300, 300)
w.setWindowTitle('Simple test')
w.show()

When I try the above, I see a window appear and then immediately
disappear.  Is there something else I need to do in order to keep the
window around?

My next step once I figure that out will be to create a leoQtFrame and
display it in a toplevel window or something.  I think I know the
first part:

import leo.plugins.qtGui as qtGui
f = qtGui.leoQtFrame("test", qtGui)

but then what do I do to get the leoframe to display somewhere?

Brian

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to