From 95e73fed9112e8cf1f01f27a6962fd4b951e976a Mon Sep 17 00:00:00 2001 From: cultpenguin Date: Sat, 8 Oct 2005 11:41:15 +0000 Subject: [PATCH] *** empty log message *** --- GUI/gui.py | 38 +++++++ GUI/test/test.glade | 230 +++++++++++++++++++++++++++++++++++++++ GUI/test/test.glade.bak | 230 +++++++++++++++++++++++++++++++++++++++ GUI/test/test.gladep | 8 ++ GUI/test/test.gladep.bak | 8 ++ 5 files changed, 514 insertions(+) create mode 100644 GUI/gui.py create mode 100644 GUI/test/test.glade create mode 100644 GUI/test/test.glade.bak create mode 100644 GUI/test/test.gladep create mode 100644 GUI/test/test.gladep.bak diff --git a/GUI/gui.py b/GUI/gui.py new file mode 100644 index 0000000..2ce2182 --- /dev/null +++ b/GUI/gui.py @@ -0,0 +1,38 @@ +#!/usr/bin/python2.4 +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Small test to demonstrate glade.XML.signal_autoconnect on an instance +# + +import pygtk +pygtk.require('2.0') + +import gtk, gtk.glade + +import segypy + +class SimpleTest: + def __init__(self): + # xml = gtk.glade.XML('test2.glade') + xml = gtk.glade.XML('test/test.glade') + xml.signal_autoconnect(self) + + def on_new1_activate(self, button): + print 'foo' + self.segy = segypy.readSegy('../data_4byteINT.segy') + print 'foo2' + +test = SimpleTest() +gtk.main() diff --git a/GUI/test/test.glade b/GUI/test/test.glade new file mode 100644 index 0000000..111096a --- /dev/null +++ b/GUI/test/test.glade @@ -0,0 +1,230 @@ + + + + + + + 800 + 600 + True + SegyPY GUI + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + True + 3 + 1 + False + 0 + 0 + + + + True + GTK_PACK_DIRECTION_LTR + GTK_PACK_DIRECTION_LTR + + + + True + _File + True + + + + + + + True + gtk-new + True + + + + + + + True + gtk-open + True + + + + + + + True + gtk-save + True + + + + + + + True + gtk-save-as + True + + + + + + + True + + + + + + True + gtk-quit + True + + + + + + + + + + + True + _Edit + True + + + + + + + True + gtk-cut + True + + + + + + + True + gtk-copy + True + + + + + + + True + gtk-paste + True + + + + + + + True + gtk-delete + True + + + + + + + + + + + True + _View + True + + + + + + + + + + + True + _Help + True + + + + + + + True + _About + True + + + + + + + + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + GTK_ORIENTATION_HORIZONTAL + GTK_TOOLBAR_BOTH + True + True + + + + + + + + + + + + + + + 0 + 1 + 1 + 2 + fill + + + + + + + + diff --git a/GUI/test/test.glade.bak b/GUI/test/test.glade.bak new file mode 100644 index 0000000..111096a --- /dev/null +++ b/GUI/test/test.glade.bak @@ -0,0 +1,230 @@ + + + + + + + 800 + 600 + True + SegyPY GUI + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + False + True + False + False + GDK_WINDOW_TYPE_HINT_NORMAL + GDK_GRAVITY_NORTH_WEST + True + False + + + + True + 3 + 1 + False + 0 + 0 + + + + True + GTK_PACK_DIRECTION_LTR + GTK_PACK_DIRECTION_LTR + + + + True + _File + True + + + + + + + True + gtk-new + True + + + + + + + True + gtk-open + True + + + + + + + True + gtk-save + True + + + + + + + True + gtk-save-as + True + + + + + + + True + + + + + + True + gtk-quit + True + + + + + + + + + + + True + _Edit + True + + + + + + + True + gtk-cut + True + + + + + + + True + gtk-copy + True + + + + + + + True + gtk-paste + True + + + + + + + True + gtk-delete + True + + + + + + + + + + + True + _View + True + + + + + + + + + + + True + _Help + True + + + + + + + True + _About + True + + + + + + + + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + GTK_ORIENTATION_HORIZONTAL + GTK_TOOLBAR_BOTH + True + True + + + + + + + + + + + + + + + 0 + 1 + 1 + 2 + fill + + + + + + + + diff --git a/GUI/test/test.gladep b/GUI/test/test.gladep new file mode 100644 index 0000000..0d232b1 --- /dev/null +++ b/GUI/test/test.gladep @@ -0,0 +1,8 @@ + + + + + Test + test + FALSE + diff --git a/GUI/test/test.gladep.bak b/GUI/test/test.gladep.bak new file mode 100644 index 0000000..0d232b1 --- /dev/null +++ b/GUI/test/test.gladep.bak @@ -0,0 +1,8 @@ + + + + + Test + test + FALSE +