i use boa 6.6 and python 2.5 and pygreSQl
i wander whats wrong with my codes
def OnButton1Button (self, event):
from pg import connect
def pg_connect():
return connect(dbname = "postgres", user = "postgres",
host = "localhost" ,
port = 5432, passwd = "postgres")
db = pg_connect()
db.query("""INS ERT INTO room VALUES(''textCt rl1.Value'')""" )
i cant take the value from a textCtrl
can someone help me??
i wander whats wrong with my codes
def OnButton1Button (self, event):
from pg import connect
def pg_connect():
return connect(dbname = "postgres", user = "postgres",
host = "localhost" ,
port = 5432, passwd = "postgres")
db = pg_connect()
db.query("""INS ERT INTO room VALUES(''textCt rl1.Value'')""" )
i cant take the value from a textCtrl
can someone help me??
Comment