ChangeLog | 1 +
MANIFEST.in | 1 +
newt_syrup/configscreen.py | 5 ++++-
3 files changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 6f00565c34b8926d2cd15e14742b9033b16b2d54
Author: Darryl L. Pierce <dpierce(a)redhat.com>
Date: Sat Jul 30 07:51:18 2011 -0400
Back button is now only shown if it is explicitly set.
diff --git a/ChangeLog b/ChangeLog
index 1a24930..84826d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
Change Log:
* Version 0.1.2:
- Added the utils module.
+ - Back is only shown if the current page explicitly sets one.
* Version 0.1.1:
- Added support for color sets.
diff --git a/newt_syrup/configscreen.py b/newt_syrup/configscreen.py
index f57397e..5b8b58f 100644
--- a/newt_syrup/configscreen.py
+++ b/newt_syrup/configscreen.py
@@ -55,6 +55,9 @@ class ConfigScreen:
def get_elements_for_page(self, screen, page):
return []
+ def page_has_back(self, page):
+ return False
+
def page_has_next(self, page):
return False
@@ -159,7 +162,7 @@ class ConfigScreen:
compact_buttons = 0
if self.use_compact_buttons():
compact_buttons = 1
- if self.__current_page > 1:
+ if self.page_has_back(self.__current_page):
buttons.append(["Back", BACK_BUTTON, "F11"])
if self.page_has_next(self.__current_page):
buttons.append(["Next", NEXT_BUTTON, "F12"])
commit db812125ba9c5608aeb05b209d9c083db5f69b61
Author: Darryl L. Pierce <dpierce(a)redhat.com>
Date: Sat Jul 30 07:23:05 2011 -0400
Adds the utils.py to the distribution tarball.
diff --git a/MANIFEST.in b/MANIFEST.in
index 212e3d9..6f00212 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -6,5 +6,6 @@ include COPYING
include newt_syrup/__init__.py
include newt_syrup/configscreen.py
include newt_syrup/menuscreen.py
+include newt_syrup/utils.py
include examples/selections.py
Show replies by date