Trees | Indices | Help |
|
---|
|
Code to handle setting colors for fields in various BitPim Editor Dialogs. The idea is to show which fields are supported by the current phone model, which fields are not, and which fields are unknown (default).
To use/enable this feature for your phone, define a dict value in your phone profile that specifies the applicability of various fields. It's probably best if you copy the default_field_info dict to your phone profile and set appropriate values. The value of each key can be either: None (don't know), True (applicable), False (not applicable), 0 (not applicable), int>0 (number of entries this phone can have).
The name of this dict is 'field_color_data'. An example is included in module com_lgvx9800.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
applicable_color = wx.BLUE
|
|||
notapplicable_color = wx.RED
|
|||
dunno_color = wx.BLACK
|
|||
default_field_info =
|
|||
current_field_info =
|
|
default_field_info
|
current_field_info
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 24 16:19:49 2010 | http://epydoc.sourceforge.net |