Store template for installed OS description for repeated use.
---
pyanaconda/ui/gui/spokes/custom.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index bf1589c..a313eda 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -109,6 +109,7 @@ class CustomPartitioningSpoke(NormalSpoke):
self._current_selector = None
self._ran_autopart = False
+ self._when_create_text = ""
def apply(self):
pass
@@ -135,6 +136,9 @@ class CustomPartitioningSpoke(NormalSpoke):
NormalSpoke.initialize(self)
+ label = self.builder.get_object("whenCreateLabel")
+ self._when_create_text = label.get_text()
+
self._grabObjects()
setViewportBackground(self.builder.get_object("ava ilableSpaceViewport"), "#db3279")
setViewportBackground(self.builder.get_object("tot alSpaceViewport"), "#60605b")
@@ -252,7 +256,7 @@ class CustomPartitioningSpoke(NormalSpoke):
self._partitionsNotebook.set_current_page(0)
label = self.builder.get_object("whenCreateLabel")
- label.set_text(label.get_text() % (productName, productVersion))
+ label.set_text(self._when_create_text % (productName, productVersion))
# Add in all the existing (or autopart-created) operating systems.
for root in self.storage.roots:
--
1.7.7.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|