I think it's cool
class ClassName:
def __init__( self ):
if self.__class__ == ClassName:
raise NotImplementedError, "Cannot create object of this class"
Monday, October 26, 2009
Friday, October 9, 2009
Tkinter_Checkbutton
from Tkinter import *
master = Tk()
var = IntVar()
def value() :
print var.get()
c = Checkbutton(master, text="Expand", variable=var, command = value)
c.pack()
mainloop()
result
***************
0
1
0
1
master = Tk()
var = IntVar()
def value() :
print var.get()
c = Checkbutton(master, text="Expand", variable=var, command = value)
c.pack()
mainloop()
result
***************
0
1
0
1
Thursday, October 8, 2009
Wednesday, October 7, 2009
SQlite foreign key
FOREIGN KEY constraints is not Supported
http://www.sqlite.org/omitted.html
The 'walk around' method : Use trigger
http://www.sqlite.org/cvstrac/fileview?f=sqlite/tool/genfkey.README
http://www.sqlite.org/cvstrac/wiki?p=ForeignKeyTriggers
http://www.sqlite.org/omitted.html
The 'walk around' method : Use trigger
http://www.sqlite.org/cvstrac/fileview?f=sqlite/tool/genfkey.README
http://www.sqlite.org/cvstrac/wiki?p=ForeignKeyTriggers