diff options
author | Ryan Rix <phrkonaleash@gmail.com> | 2009-12-08 12:31:59 -0700 |
---|---|---|
committer | Ryan Rix <phrkonaleash@gmail.com> | 2009-12-08 12:31:59 -0700 |
commit | aa5e88bb76edd10554517ef4714baba46ef216d4 (patch) | |
tree | ccddc9baea398762f4dfec082013ef1d2a5ed16e | |
parent | 607c102d38f4c48b813700802aa50b73f06f8249 (diff) | |
download | fedora-tour-aa5e88bb76edd10554517ef4714baba46ef216d4.tar.gz fedora-tour-aa5e88bb76edd10554517ef4714baba46ef216d4.tar.xz fedora-tour-aa5e88bb76edd10554517ef4714baba46ef216d4.zip |
Initial creation of frontend/tour_gtk_frontend.py and a few small
changes to tour_menuobject.py, the only notable one being the removal
of the pprint class import, which was basically worthless.
-rw-r--r-- | backend/tour_menuobject.py | 13 | ||||
-rw-r--r-- | frontend/tour_gtk_frontend.py | 24 |
2 files changed, 27 insertions, 10 deletions
diff --git a/backend/tour_menuobject.py b/backend/tour_menuobject.py index ca91833..322d492 100644 --- a/backend/tour_menuobject.py +++ b/backend/tour_menuobject.py @@ -2,7 +2,7 @@ # # This file is a part of Fedora-tour http://fedoraproject.org/wiki/Fedora-tour # -# Copyright (c) 2009 Ryan Rix and Ankur Sinha +# Copyright (c) 2009 Ryan Rix # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -21,11 +21,10 @@ import io import os.path import xml.parsers.expat import sys -import pprint """ -This will be expanded +This will be expanded as more is added to the nodes. """ class MenuNode: parent = False @@ -189,10 +188,4 @@ class MenuObject: """ def makeIcon(self, iconID): - pass - -menu = Fedora-tour.MenuObject("../data/package.xml") -print "===========================" -print menu.IconID -print menu.Priority -print menu.DocRoot
\ No newline at end of file + pass
\ No newline at end of file diff --git a/frontend/tour_gtk_frontend.py b/frontend/tour_gtk_frontend.py new file mode 100644 index 0000000..421155c --- /dev/null +++ b/frontend/tour_gtk_frontend.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# +# This file is a part of Fedora-tour http://fedoraproject.org/wiki/Fedora-tour +# +# Copyright (c) 2009 Ryan Rix +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +import io +import os.path +import xml.parsers.expat +import sys + |