TheGU / fin-ally

Automatically exported from code.google.com/p/fin-ally
GNU General Public License v3.0
0 stars 0 forks source link

Apply custom editors for new grid rows #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the grid is initialized, all existing rows have custom editors applied to 
them. For example, any row containing a number will use the 
GridCellFloatEditor, which prevent users from typing letters into those grid 
elements when editing. The other prominent editors is for combo boxes and 
supports things like User of ExpenseType. This works fine and is contained 
primarily in the method GraphicsGrid.InitialTableFormat().

However, when new rows are entered using the expense entry fields, these rows 
are added to the table without the custom editors, which is bad. We cannot just 
re-call InitialTableFormat() because wxPython doesn't allow re-initialization 
of certain editor objects (ie: instance variables userChoiceEditor and 
typeChoiceEditor)

Original issue reported on code.google.com by Daniel.S...@gmail.com on 15 Aug 2010 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by Daniel.S...@gmail.com on 20 Sep 2010 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by Daniel.S...@gmail.com on 20 Sep 2010 at 2:47