~dbernar1/pystart/dabar

« back to all changes in this revision

Viewing changes to PyStart Code/.metadata/.plugins/org.eclipse.core.resources/.history/cc/80cb565fdcf3001b1931be519d74391c

  • Committer: Jason Brower
  • Date: 2007-04-30 05:50:06 UTC
  • Revision ID: encompass@gmail.com-20070430055006-b3ej6w3eqagpdspn
First Posting of all data... Hope this works...
In PyStart Code it has the eclipse files too... incase anyone uses it...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#/usr/bin/env python
 
2
import sys
 
3
import os
 
4
import pynotify
 
5
try: 
 
6
    import pygtk 
 
7
    pygtk.require( "2.0" ) 
 
8
except: 
 
9
    pass 
 
10
try: 
 
11
    import gtk 
 
12
    import gtk.glade 
 
13
except: 
 
14
    sys.exit( 1 )
 
15
pynotify.init( "CamServFront" )
 
16
 
 
17
 
 
18
class appGui:
 
19
    def __init__( self ): 
 
20
        gladefile = "PyStart.glade" 
 
21
        self.windowname = "windowMain"
 
22
        self.wTree = gtk.glade.XML( gladefile, self.windowname )
 
23
        labelCamState = self.wTree.get_widget( "labelCamState" )
 
24
        dic = {"on_window1_destroy" : gtk.main_quit(), 
 
25
            }
 
26
        self.wTree.signal_autoconnect ( dic )
 
27
app = appGui()
 
28
gtk.main()
 
 
b'\\ No newline at end of file'