[Glade-users] How to set a default adjustment in glade widget
Chris Morley
chrisinnanaimo at hotmail.com
Fri Aug 21 06:38:08 UTC 2015
I have built a custom widget based on Hscale (GTK2).
In my widget I supply an adjustment.
This works fine if I use the widget directly in Python code.
If I use it as a Glade widget, the adjustment seems to be
ignored. Is there a way to:
a) tell Glade not to add an adjustment of it's own, So that
mine is used automatically.
Or
b) tell Glade to use my adjustment directly.
I had tried something like:
<glade-widget-class name="Override" generic-name="override" title="Override Controls">
<properties>
<property id="adjustment" default="adjustment" visible="True"/>
</properties>
</glade-widget-class>
and
<property id="adjustment" disabled="True" visible="False"/>
Neither did what I was hoping.
I can paste widget code if required.
Thanks
Chris Morley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/glade-users/attachments/20150821/a879e839/attachment.html>
More information about the Glade-users
mailing list