controls/DurationCellEditor.py
changeset 1736 7e61baa047f0
parent 1730 64d8f52bc8c8
child 1767 c74815729afd
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
    25 import wx
    25 import wx
    26 
    26 
    27 from dialogs.DurationEditorDialog import DurationEditorDialog
    27 from dialogs.DurationEditorDialog import DurationEditorDialog
       
    28 
    28 
    29 
    29 class DurationCellControl(wx.PyControl):
    30 class DurationCellControl(wx.PyControl):
    30 
    31 
    31     '''
    32     '''
    32     Custom cell editor control with a text box and a button that launches
    33     Custom cell editor control with a text box and a button that launches
    92         self.Duration.SetInsertionPoint(i)
    93         self.Duration.SetInsertionPoint(i)
    93 
    94 
    94     def SetFocus(self):
    95     def SetFocus(self):
    95         self.Duration.SetFocus()
    96         self.Duration.SetFocus()
    96 
    97 
       
    98 
    97 class DurationCellEditor(wx.grid.PyGridCellEditor):
    99 class DurationCellEditor(wx.grid.PyGridCellEditor):
    98     '''
   100     '''
    99     Grid cell editor that uses DurationCellControl to display an edit button.
   101     Grid cell editor that uses DurationCellControl to display an edit button.
   100     '''
   102     '''
   101     def __init__(self, table, colname):
   103     def __init__(self, table, colname):