On Sat, Nov 29, 2008 at 12:36 PM, leo_hag <[EMAIL PROTECTED]> wrote:

> For the qt_plugin, past the following script into the body of a node
> and execute it.  The script places the minibuffer in a toolbar.
>
> When making collections of objects that represent a single unit it is
> best to put them into a widget, then it is easier to handle.
>
> I have only been able to test in on Windows, how does it do on Linux?

Works on my computer (Ubuntu 8.04.1).

Key bindings in general seem to be broken currently, so I can't type
alphabetic characters to minibuffer in the first place, but that's not
because of your test...

I don't think this is an optimal way to do it because it should be
done *by default* in the qt plugin, but what is very cool about it is
showing how easy it is to edit the gui "on the fly", i.e. the gui of
leo is everything but set in stone and end users that know Qt can play
with it quite a bit without having to patch leo :-).

Now that you are on the roll (and probably can contribute more than I
am able at the moment, perhaps you could play with the idea of loading
the gui dynamically?

Take a look at:

Qt gui-->@thin qtGui.py-->Frame and component classes...-->class
DynamicWindow--> ctor (Window)

Tho code that sets up the ui is:

   ui_description_file = g.app.loadDir + "/../plugins/qt_main.ui"
    QtGui.QMainWindow.__init__(self,parent)
    self.ui = uic.loadUi(ui_description_file, self)

You could try doing the same at run time, with configurable file name.
I.e. repopulate the ui ivar. An ui description file could have more
stuff as dockable widgets, for example.

Ui files are, of course, generated by the ui designer, and it makes
sense to keep using the ui designer as much as possible. It makes
new/experimental ui's much easier to create, and even more
importantly, require no coding or changes to the gui plugin itself
(apart from eventually providing a stand-alone versions of ui files
that have proven effective).

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
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