コード例 #1
0
ファイル: miscevents.py プロジェクト: gbtami/storytext
 def setMatchingIter(self, model, path, iter, argumentString):
     # Hardcode 0, seems to work for the most part...
     # but when not we will try 1
     column = 0 if model.get_column_type(0) is str else 1
     if removeMarkup(model.get_value(iter, column)) == argumentString:
         self.changeMethod(iter)
         return True
コード例 #2
0
ファイル: miscevents.py プロジェクト: gbtami/storytext
 def getStateDescription(self, *args):
     # Hardcode 0, seems to work for the most part...
     # but when not we will try 1
     model = self.widget.get_model()
     column = 0 if model.get_column_type(0) is str else 1
     iter = self.widget.get_active_iter()
     if iter is not None:
         return removeMarkup(model.get_value(iter, column))
     else:
         return ""
コード例 #3
0
 def getValue(self, *args):
     value = self.extractor.getValue(*args)
     return removeMarkup(str(value))