=== modified file 'ubiquity/components/ubi-language.py'
--- ubiquity/components/ubi-language.py 2010-03-30 16:15:19 +0000
+++ ubiquity/components/ubi-language.py 2010-04-01 01:06:42 +0000
@@ -320,6 +320,15 @@
self.page.try_text_label.hide()
self.page.begin_install_button.hide()
+ # We do not want to show the yet to be substituted strings
+ # (${MEDIUM}, etc), so don't show the core of the page until
+ # it's ready.
+ self.widgetHidden = {}
+ for w in self.page.children():
+ if isinstance(w, QWidget):
+ self.widgetHidden[w] = w.isHidden()
+ w.hide()
+
except Exception, e:
self.debug('Could not create language page: %s', e)
self.page = None
@@ -338,6 +347,7 @@
def set_alpha_warning(self, show):
if not show and not self.only:
self.page.alpha_warning_label.hide()
+ self.widgetHidden[self.page.alpha_warning_label] = True
def on_release_notes_link(self, link):
lang = self.selected_language()
@@ -411,6 +421,11 @@
text = text.replace('${RELEASE}', release_name)
text = text.replace('${MEDIUM}', install_medium)
widget.setText(text)
+ from PyQt4.QtGui import QWidget
+ for w in self.page.children():
+ if isinstance(w, QWidget):
+ if not self.widgetHidden[w]:
+ w.show()
def set_oem_id(self, text):
return self.page.oem_id_entry.setText(text)
--
kubuntu ubiquity shows ${RELEASE} briefly at start
https://bugs.launchpad.net/bugs/540202
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs