コード例 #1
0
ファイル: accounteditor.py プロジェクト: ComradeHadi/stoq
    def refresh_ok(self, value):
        BaseEditor.refresh_ok(self, value)

        account_type = self.account_type.get_selected()
        if account_type != Account.TYPE_BANK:
            value = False
        self._test_button.set_sensitive(value)
コード例 #2
0
ファイル: accounteditor.py プロジェクト: romaia/stoq
    def refresh_ok(self, value):
        BaseEditor.refresh_ok(self, value)

        account_type = self.account_type.get_selected()
        if account_type != Account.TYPE_BANK:
            value = False
        self._test_button.set_sensitive(value)
コード例 #3
0
ファイル: deviceseditor.py プロジェクト: tmaxter/stoq
 def refresh_ok(self, *args):
     if self._is_initialized:
         BaseEditor.refresh_ok(self, self.model.is_valid())
コード例 #4
0
 def refresh_ok(self, *args):
     if self._is_initialized:
         BaseEditor.refresh_ok(self, self.model.is_valid())
コード例 #5
0
ファイル: deviceseditor.py プロジェクト: 5l1v3r1/stoq-1
 def refresh_ok(self, *args):
     if not self._is_initialized:
         return
     if self.test_button:
         self.test_button.set_sensitive(self.model.is_valid())
     BaseEditor.refresh_ok(self, self.model.is_valid())