Okay, great.. I think the eye-dropper color selector widget from your particular installed version is returning a color object that does not return the color string unless you call 'to_string()', which I thought it was already doing, not sure why I am not (as it more concise). I have modified the in-line script to reflect this change; If you would be kind enough to test it and report back, I will fix the problem in the applet and then nobody else will run into this.
cd /usr/share/avant-window-navigator/applets/bandwidth-monitor/
Okay, great.. I think the eye-dropper color selector widget from your particular installed version is returning a color object that does not return the color string unless you call 'to_string()', which I thought it was already doing, not sure why I am not (as it more concise). I have modified the in-line script to reflect this change; If you would be kind enough to test it and report back, I will fix the problem in the applet and then nobody else will run into this.
cd /usr/share/ avant-window- navigator/ applets/ bandwidth- monitor/
python -c """import gtk
win = gtk.Window() title(' Colour Parse Test - bug 534061') add_from_ file('bandwidth -monitor. ui') get_object( 'dialog- notebook' ).reparent( prefs_box) get_object( 'bgColorbutton' ) color_set_ cb(widget) : connect( 'color- set', bgColorbutton_ color_set_ cb) get_object( 'dialog- notebook' ).connect( 'destroy' , close)
win.set_
prefs_box = gtk.VBox()
win.add(prefs_box)
prefs_ui = gtk.Builder()
prefs_ui.
prefs_ui.
bgColorbutton = prefs_ui.
def bgColorbutton_
color = widget.get_color()
alpha = float('%2.1f' % (widget.get_alpha() / 65535.0))
print '---------'
print 'color object:', color.to_string()
print 'type:', type(color)
print 'alpha:', alpha
print '---------'
return
bgColorbutton.
def close(*args):
print 'Exiting normally'
exit()
prefs_ui.
win.show_all()
gtk.main()
"""
Thanks,
Kyle