[node-patches] Change in ovirt-node[master]: ui: Add InfoDialog
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon Feb 25 17:27:02 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: ui: Add InfoDialog
......................................................................
ui: Add InfoDialog
Change-Id: Ieba221d2b3d399ace798f29992d6c1a707c8b0d4
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/ui/__init__.py
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/20/12420/1
diff --git a/scripts/tui/src/ovirt/node/ui/__init__.py b/scripts/tui/src/ovirt/node/ui/__init__.py
index c846040..57de1cd 100644
--- a/scripts/tui/src/ovirt/node/ui/__init__.py
+++ b/scripts/tui/src/ovirt/node/ui/__init__.py
@@ -667,6 +667,15 @@
self.on_close_change(self)
+class InfoDialog(Dialog):
+ """A dialog with a title and a text
+ """
+ def __init__(self, path, title, text, buttons=None):
+ super(InfoDialog, self).__init__(path, title, [])
+ self.children = [Label("label[0]", text)]
+ self.buttons = buttons or [CloseButton("dialog.close")]
+
+
class TransactionProgressDialog(Dialog):
"""Display the progress of a transaction in a dialog
"""
--
To view, visit http://gerrit.ovirt.org/12420
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieba221d2b3d399ace798f29992d6c1a707c8b0d4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list