2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>
* examples/python/systray/network_tray.py: Added nice message when you try to run without running make first git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:

committed by
Bryan W. Clark

parent
bc7cd6c408
commit
ee1cb1e400
@@ -1,5 +1,8 @@
|
|||||||
2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>
|
2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>
|
||||||
|
|
||||||
|
* examples/python/systray/network_tray.py:
|
||||||
|
Added nice message when you try to run without running make first
|
||||||
|
|
||||||
* examples/python/NetworkManager.py:
|
* examples/python/NetworkManager.py:
|
||||||
Bug fixes to the code so we get all the device information
|
Bug fixes to the code so we get all the device information
|
||||||
that we need in get_device()
|
that we need in get_device()
|
||||||
|
@@ -2,8 +2,14 @@
|
|||||||
import pygtk; pygtk.require("2.0")
|
import pygtk; pygtk.require("2.0")
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
import gtk.gdk
|
||||||
import trayicon
|
|
||||||
from NetworkManager import NetworkManager
|
try:
|
||||||
|
import trayicon
|
||||||
|
from NetworkManager import NetworkManager
|
||||||
|
except:
|
||||||
|
print "type 'make' make the necessary modules to run this example"
|
||||||
|
import sys
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
class network_tray:
|
class network_tray:
|
||||||
|
Reference in New Issue
Block a user