remove prints

This commit is contained in:
Tim Bentley 2015-12-05 12:45:51 +00:00
parent dcf97bf93b
commit 9a950ea4ab
1 changed files with 0 additions and 3 deletions

View File

@ -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)