forked from openlp/openlp
remove prints
This commit is contained in:
parent
dcf97bf93b
commit
9a950ea4ab
@ -293,15 +293,12 @@ class MainDisplay(OpenLPMixin, Display, RegistryProperties):
|
|||||||
if self.height() != self.screen['size'].height() or not self.isVisible():
|
if self.height() != self.screen['size'].height() or not self.isVisible():
|
||||||
shrink = True
|
shrink = True
|
||||||
js = 'show_alert("%s", "%s")' % (text_prepared, 'top')
|
js = 'show_alert("%s", "%s")' % (text_prepared, 'top')
|
||||||
print(js)
|
|
||||||
else:
|
else:
|
||||||
shrink = False
|
shrink = False
|
||||||
js = 'show_alert("%s", "")' % text_prepared
|
js = 'show_alert("%s", "")' % text_prepared
|
||||||
print(js)
|
|
||||||
height = self.frame.evaluateJavaScript(js)
|
height = self.frame.evaluateJavaScript(js)
|
||||||
if shrink:
|
if shrink:
|
||||||
if text:
|
if text:
|
||||||
print(height)
|
|
||||||
alert_height = int(height)
|
alert_height = int(height)
|
||||||
self.resize(self.width(), alert_height)
|
self.resize(self.width(), alert_height)
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user