![](https://secure.gravatar.com/avatar/bcfd4053c59744b0d94fb0b00ced349c.jpg?s=120&d=mm&r=g)
Hmm, I just figured out how to work with Glade and Python together. I'm not sure why I need Autoglade though, because the mentioned Examples can be easily implemented using just Glade:
... def ExampleData(self,widget): index = self.wTree.get_widget("Examples").get_active(); if index == 0: self.wTree.get_widget("windowMain").set_title("Pythagorean Tree") self.wTree.get_widget("Field1").set_text("60") self.wTree.get_widget("Field2").set_text("45") ...
However, I've yet to find out how to link the above Python script to Inkscape. For those who aren't familiar with Glade/Python, the Python script calls the GUI defined in the Glade file. So via a terminal, the GUI appears by typing "python Examples.py". Somehow the Python file needs a link to the Inkscape Canvas. I hope somebody has some spare time to join me in creating interactive dialogs!
Best regards, Pieter
On 11/22/2010 10:44 PM, Aurélio A. Heckert wrote:
On Mon, Nov 22, 2010 at 10:52 AM, Pieter Barendrecht<pieter@...2481...> wrote:
Hi Aurium,
Thanks for your support. I tried to install Autoglade (on Ubuntu 10.04), however the Package Installer complains about "Dependency is not satisfiable: python-xml". I found on Google that this package may be unstable and is obsolete, and therefore removed from the repo. I didn't have time yet to look into the source how to fix this.
Ho... Will be good you to fix an test this! Than you will see how good is the idea.
Back to the original question. If I understand correctly, it is not possible to create an interactive dialog using the RelaxNG schema language (used for the xml in the INX files)?
May be... but i think that will be a bad approach. The glade syntax can do better dialogs, and with some code that will be more "smart".
Pieter