コード例 #1
0
ファイル: range_restriction.py プロジェクト: obdasystems/eddy
 def setText(self, text):
     """
     Set the label text making sure not to have 'self' as range.
     :type text: str
     """
     restriction = Restriction.forLabel(text)
     if not restriction:
         text = Restriction.Exists.toString()
     self.label.setText(text)
コード例 #2
0
 def setText(self, text):
     """
     Set the label text making sure not to have 'self' as range.
     :type text: str
     """
     restriction = Restriction.forLabel(text)
     if not restriction:
         text = Restriction.Exists.toString()
     self.label.setText(text)
コード例 #3
0
ファイル: restriction.py プロジェクト: danielepantaleone/eddy
 def setText(self, text):
     """
     Set the label text.
     Will additionally parse the given value checking for a consistent restriction type.
     :type text: str
     """
     restriction = Restriction.forLabel(text)
     if not restriction:
         text = Restriction.Exists.toString()
     self.label.setText(text)
コード例 #4
0
 def setText(self, text):
     """
     Set the label text.
     Will additionally parse the given value checking for a consistent restriction type.
     :type text: str
     """
     restriction = Restriction.forLabel(text)
     if not restriction:
         text = Restriction.Exists.toString()
     self.label.setText(text)
コード例 #5
0
ファイル: restriction.py プロジェクト: danielepantaleone/eddy
 def restriction(self):
     """
     Returns the restriction type of the node.
     :rtype: Restriction
     """
     return Restriction.forLabel(self.text())
コード例 #6
0
 def restriction(self):
     """
     Returns the restriction type of the node.
     :rtype: Restriction
     """
     return Restriction.forLabel(self.text())