コード例 #1
0
ファイル: str_editor.py プロジェクト: TimothyZhang/structer
    def __init__(self):
        GridCellBaseEditor.__init__(self)

        # If ESC is pressed, EndEdit will be called and get_value() will return an empty string
        # but we want the original value instead of empty string
        # I don't know how to correct this behavior, so I just hooked ESC key event.
        self._canceled = False
コード例 #2
0
ファイル: str_editor.py プロジェクト: TimothyZhang/structer
 def __init__(self):        
     GridCellBaseEditor.__init__(self)
     
     # If ESC is pressed, EndEdit will be called and get_value() will return an empty string
     # but we want the original value instead of empty string
     # I don't know how to correct this behavior, so I just hooked ESC key event.
     self._canceled = False
コード例 #3
0
    def __init__(self, dialog_class=None):
        """
        Args:
            dialog_class: the Class object of dialog. use EditorDialog by default.
        """
        GridCellBaseEditor.__init__(self)

        if dialog_class is None:
            dialog_class = EditorDialog
        self.dialog_class = dialog_class

        self._grid = None
        self._row = None
        self._col = None
        self._ctrl = None
        self._dlg_ctx = None
        self._top_level_window = None
コード例 #4
0
    def __init__(self, dialog_class=None):
        """
        Args:
            dialog_class: the Class object of dialog. use EditorDialog by default.
        """
        GridCellBaseEditor.__init__(self)
        
        if dialog_class is None:
            dialog_class = EditorDialog
        self.dialog_class = dialog_class

        self._grid = None
        self._row = None
        self._col = None
        self._ctrl = None
        self._dlg_ctx = None
        self._top_level_window = None
コード例 #5
0
 def __init__(self):        
     GridCellBaseEditor.__init__(self)
コード例 #6
0
ファイル: enum_editor.py プロジェクト: TimothyZhang/structer
 def __init__(self):        
     GridCellBaseEditor.__init__(self)
     self._ctrl = None
     self._old_label = None
コード例 #7
0
ファイル: enum_editor.py プロジェクト: TimothyZhang/structer
 def __init__(self):
     GridCellBaseEditor.__init__(self)
     self._ctrl = None
     self._old_label = None