2006-04-25

Python and LibGlade

I've found that Python and LibGlade are also wonderfully paired these days. This Python code

import gtk
import gtk.glade

class appGui:
def __init__(self):
callbacks = {
"on_button1_clicked" : self.on_button1_clicked,
"on_window1_delete_event" : gtk.main_quit
}
self.do_bindings(callbacks)
return

def do_bindings(self, callbacks):
self.xml = gtk.glade.XML("simple.glade")
self.xml.signal_autoconnect( callbacks )
return

def on_button1_clicked(self, widget):
entry = self.xml.get_widget("entry1")
print entry.get_text()
return

appGui()
gtk.main()

uses the same simple.glade file that the Overholt demo created. Try it!

2006-04-22

Fedora Core 5 and Dual Head or rather MergedFB

With FC5 and X11R7 things have changedfor Dual Head.

'man radeon' was *extreamly* helpful. Real documentation.

For the ATI Radeon driver on an IBM ThinkPad T30, I left out "Xinerama" and "Clone" from the "ServerLayout" section and added the following to the "Device" section:

Option "MonitorLayout" "LCD, VGA"
Option "MergedFB" "True"
Option "CRT2Position" "LeftOf"
Option "MetaModes" "1024x768-1280x1024"
Option "MergedNonRectangular" "True"

Also in the "Display" SubSection of the "Screen" Section added

Virtual 2304 1024

So, all is well after 'pkill -HUP X11' except that I had to move panels and icons back to the laptop LCD as I intend that to be the primary. I didn't try "MergedFB" "Auto".