![]() |
| ||
| Data View I got this error when i was running a tuturial on how to view data using a grid in wx. I downloaded the modules for wx. I wandering if anyone can help me. this is the error i got Traceback (most recent call last): This is the code i put in. import wx got the example on this site: http://www.serpia.org/mysql. If you know any other tutorials i can try to view data from mysql database. |
| ||
| Re: Data View Don't wedge your for loops detween two function defines! Rewrite your code like this ... import wxThe way you had it, Python looks at them as global to the class and self hasn't been declared yet. I don't have getdata, so I can't test it! |
| ||
| Re: Data View Thank you for the code it works. Well it displays the window but Its not getting the data from the getdata.py here is the code.For the getdata import MySQLdb |
| ||
| Re: Data View In your earlier code you don't seem to ever use method __set_properties() |
| All times are GMT -4. The time now is 1:27 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC