~alexzak/bzr/mascyma

« back to all changes in this revision

Viewing changes to gui/infodialog.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Andreas Benkard
  • Date: 2004-04-11 15:52:53 UTC
  • Revision ID: james.westby@ubuntu.com-20040411155253-uxyl17oylqzidez4
Tags: 0.59-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
# Copyright (c)2003, Matthias A. Benkard.
 
4
 
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 2 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 
 
19
 
 
20
from core.common import _, path
 
21
 
 
22
import gtk
 
23
import gtk.glade
 
24
 
 
25
class InfoDialog:
 
26
        def __init__(self):
 
27
                self.wTree = gtk.glade.XML(path["glade"], "info_dialog", "mascyma")
 
28
                self.wTree.signal_autoconnect(self)
 
29
        
 
30
        def on_close_button_clicked(self, *args):
 
31
                self.wTree.get_widget("info_dialog").destroy()
 
32