MySQLdb and dictcursor

2006-07-24 Thread borris
doesn anyone know a good reference, tute or examples of MySQLdb's dictCursor I want to pass dictionaries into the sql exec statements. I could only succeed with text as values this is how I got the cursor object to call cursor.execute("query") connection = MySQLdb.connect( host = "localhost", u

type comparison and wxpython

2006-07-09 Thread borris
ive been trying to do a test for type with wxpython objects like passing in a wx.TextCtrl into def XXX(obj) if type(obj) is type(self.Button) I have to make an object self.Button to get its type. as I tried is type("wx.Button") which didnt work. trouble is the button must have a parent, whi