Hello,
I’m just starting with python programming and wxPython and I’d appreciate a little help from the experts.
I have created a grid for which I am trying to define an attribute for the various data types.
I didn’t encounter any problem with all the other data types except for the DATE.
The error message is:
AttributeError: ‘module’ object has no attribute ‘GridCellDateRenderer’
I’ve seen GridCellDateRenderer in various wxPython documentation. I’ve also search the internet on how to create a renderer for a cell in the grid containing a date value but have been unable to find the answer.
Python 2.7 is just old as 10 years …
If you are not blocked by a lib upgrade to Python 3, you will have a better support and update easily with pip command (or other) to last wxPython suitable for your environment.
If for some reason you can’t upgrade to wxPython 4.1 or later, you could try to derive your own GridCellDateRenderer class from the abstract wx.grid.GridCellRenderer class.
I have moved several VFP apps to python3. First I don’t actually use dbf’s - I either convert the table to Postgresql or sqlite. I transfer the data using dbf_light · PyPI. There are also some free ETL’s available.
I also use dabo (version 3 - https://github.com/dabodev/dabo.git then use branch dabo3). Dabo uses the same thinking that VFP - there are differences but overall the thinking works. Dabo also uses Postgresql or sqlite. BTW dabo provides the UI and the way to attach data to the widgets.
I am converting an integrated system with several applications (finance, payroll, inventory, sales, etc.) I am not able to convert them all at the same time and since they’re all integrated, I need dbfpy for the python programs to access dbf files. I have already converted several VFP forms to wxPython without problem until I needed to create a VFP table that has cells containing dates.
I looked up dabo and found it to be promising. However, there doesn’t seem to be enough documentation on it for a newbie like me who has barely two weeks of python experience. I will try it later when I don’t have a deadline.