[billreminder/fresh] the new window
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [billreminder/fresh] the new window
- Date: Fri, 15 Jan 2010 14:51:39 +0000 (UTC)
commit a54ca10a425a27d01bb62fa5de7f2fa17ade54c1
Author: Toms Bauģis <toms baugis gmail com>
Date: Fri Jan 15 14:51:31 2010 +0000
the new window
src/billreminder.py | 9 ++++++++-
src/gui/new.py | 4 ++--
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/billreminder.py b/src/billreminder.py
index 63c462a..18a4683 100755
--- a/src/billreminder.py
+++ b/src/billreminder.py
@@ -54,11 +54,18 @@ def main():
parser.add_option('--about', action='store_true', dest='app_about', default=False, help=_('About this application.'))
parser.add_option('--add', action='store_true', dest='app_add', default=False, help=_('Adds a new bill to the database.'))
parser.add_option('--standalone', action='store_true', dest='app_standalone', default=False, help=_('Access database directly, without daemon.'))
+ parser.add_option('--new', action='store_true', dest='new_main', default=False)
# Verify arguments
options, args = parser.parse_args()
- if options.app_about:
+
+ if options.new_main:
+ from gui.new import BasicWindow
+ app = BasicWindow()
+ gtk.main()
+
+ elif options.app_about:
dialogs.about_dialog()
elif options.app_add:
print dialogs.add_dialog()
diff --git a/src/gui/new.py b/src/gui/new.py
old mode 100644
new mode 100755
index df4b7e2..85d82ca
--- a/src/gui/new.py
+++ b/src/gui/new.py
@@ -3,7 +3,7 @@
import gtk
from db import entities
-from gui import widgets
+import widgets
class BasicWindow:
@@ -18,7 +18,7 @@ class BasicWindow:
self.window.set_title("Basic Window")
- self.window.set_size_request(300, 200)
+ self.window.set_size_request(500, 300)
self.window.connect("delete_event", self.delete_event)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]