Trying a different approach in using pyside

Obtained from: http://code.ohloh.net/file?fid=5WRieEl5W6heSSI4asOuc_HaXZo&cid=K6Emv9zeMrM&s=&fp=505679&mp&projSelected=true#L0