39 from python_qt_binding.QtWidgets
import QApplication
47 _WIDGET_NAME =
'Title sample' 51 unittest.TestCase.setUp(self)
59 unittest.TestCase.tearDown(self)
64 self._widget.update_time(val)
66 print(
'toolTip={} name={}' 67 .format(self._widget.toolTip(), self._widget._name))
68 comp =
"%s: %.2f%% remaining" % (self.
_WIDGET_NAME, float(val))
69 tool_tip = self._widget.toolTip()
70 self.assertEqual(comp, tool_tip)
73 if __name__ ==
'__main__':
75 app = QApplication(argv)