Hello All
I am trying create a wx.ProgressDialog to get informations while to connect in mysql.
see the code.
dbPath = {"ip":ipServer,
"user":"theuser",
"pass":"thepass",
"db":"mybd"
}
try:
dbCon = MySQLdb.connect(dbPath["ip"], dbPath["user"], dbPath["pass"], dbPath["db"])
dlg = wx.ProgressDialog("Connecting...", "Trying connect",
parent = self,
maximum = dbCon # here i need a int
)
while not dbCon:
dlg.Update()
thats not work.
Any idea ? |