~ubuntu-branches/ubuntu/maverick/awn-extras-applets/maverick

« back to all changes in this revision

Viewing changes to applets/unmaintained/stacks/stacks_glade.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-08-29 14:29:52 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100829142952-rhvuetyms9bv5uu7
Tags: upstream-0.4.0+bzr1372
ImportĀ upstreamĀ versionĀ 0.4.0+bzr1372

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
 
 
3
2
# Copyright (c) 2007 Timon ter Braak
4
3
#
5
4
# This library is free software; you can redistribute it and/or
21
20
import gtk
22
21
import gtk.glade
23
22
 
 
23
 
24
24
class GladeWindow(gobject.GObject):
25
 
    """
26
 
    Base class for dialogs or windows backed by glade interface definitions.
 
25
 
 
26
    """Base class for dialogs or windows backed by glade interface definitions.
27
27
 
28
28
    Example:
29
29
    class MyWindow(GladeWindow):
34
34
    does *not* descend from GtkWindow, so you can't treat the resulting object
35
35
    as a GtkWindow. The show, hide, destroy, and present methods are provided as
36
36
    convenience wrappers.
 
37
 
37
38
    """
38
39
 
39
40
    glade_file = None
65
66
        self.hide = self.window.hide
66
67
        self.present = self.window.present
67
68
 
 
69
 
68
70
gobject.type_register(GladeWindow)