Esempio n. 1
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)
 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)
Esempio n. 3
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)
Esempio n. 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)
Esempio n. 5
0
 def restriction(self):
     """
     Returns the restriction type of the node.
     :rtype: Restriction
     """
     return Restriction.forLabel(self.text())
Esempio n. 6
0
 def restriction(self):
     """
     Returns the restriction type of the node.
     :rtype: Restriction
     """
     return Restriction.forLabel(self.text())