widgets/window.py
def change_device(self, widget, data = None):
		"""
		Change which device we're looking at.
		"""

		if self.set_box is None:
			self.set_box = gtk.HBox()
			label = gtk.Label('OID: ')
			self.set_box.pack_start(label, expand = False)
			self.set_entry_oid = gtk.Entry()
			self.set_box.pack_start(self.set_entry_oid)
			label = gtk.Label('Value: ')
			self.set_box.pack_start(label, expand = False)
			self.set_entry_value = gtk.Entry()
			self.set_box.pack_start(self.set_entry_value)
			button = gtk.Button('Set')
			button.connect('clicked', self.set_value)
			self.set_box.pack_start(button, expand = False)
			
			self.vbox.pack_start(self.set_box, expand = False)


		if self.scrolled is not None:
			self.vbox.remove(self.scrolled)
		if self.scrolled_text is not None:
			self.vbox.remove(self.scrolled_text)

		self.scrolled = gtk.ScrolledWindow()
		self.scrolled_text = gtk.ScrolledWindow()

		self.textview = TextView()

		self.treeview = TreeView(self.textview,
				self.nms_accessor, 
				self.combobox.get_active_text())

		if self.treeview is not None:
			self.scrolled.remove(self.treeview)
		self.scrolled.add_with_viewport(self.treeview)
		if self.textview is not None:
			self.scrolled_text.remove(self.textview)
		self.scrolled_text.add_with_viewport(self.textview)

		self.vbox.pack_start(self.scrolled)
		self.vbox.pack_start(self.scrolled_text)

		self.show_all()

		Change which device we're looking at.
		
Change which device we're looking at.
Change which device we ' re looking at .
def change_device(self, widget, data = None):
		if self.set_box is None:
			self.set_box = gtk.HBox()
			label = gtk.Label('OID: ')
			self.set_box.pack_start(label, expand = False)
			self.set_entry_oid = gtk.Entry()
			self.set_box.pack_start(self.set_entry_oid)
			label = gtk.Label('Value: ')
			self.set_box.pack_start(label, expand = False)
			self.set_entry_value = gtk.Entry()
			self.set_box.pack_start(self.set_entry_value)
			button = gtk.Button('Set')
			button.connect('clicked', self.set_value)
			self.set_box.pack_start(button, expand = False)
			self.vbox.pack_start(self.set_box, expand = False)
		if self.scrolled is not None:
			self.vbox.remove(self.scrolled)
		if self.scrolled_text is not None:
			self.vbox.remove(self.scrolled_text)
		self.scrolled = gtk.ScrolledWindow()
		self.scrolled_text = gtk.ScrolledWindow()
		self.textview = TextView()
		self.treeview = TreeView(self.textview,
				self.nms_accessor, 
				self.combobox.get_active_text())
		if self.treeview is not None:
			self.scrolled.remove(self.treeview)
		self.scrolled.add_with_viewport(self.treeview)
		if self.textview is not None:
			self.scrolled_text.remove(self.textview)
		self.scrolled_text.add_with_viewport(self.textview)
		self.vbox.pack_start(self.scrolled)
		self.vbox.pack_start(self.scrolled_text)
		self.show_all()
def change_device ( self , widget , data = None ) : if self . set_box is None : self . set_box = gtk . HBox ( ) label = gtk . Label ( 'OID: ' ) self . set_box . pack_start ( label , expand = False ) self . set_entry_oid = gtk . Entry ( ) self . set_box . pack_start ( self . set_entry_oid ) label = gtk . Label ( 'Value: ' ) self . set_box . pack_start ( label , expand = False ) self . set_entry_value = gtk . Entry ( ) self . set_box . pack_start ( self . set_entry_value ) button = gtk . Button ( 'Set' ) button . connect ( 'clicked' , self . set_value ) self . set_box . pack_start ( button , expand = False ) self . vbox . pack_start ( self . set_box , expand = False ) if self . scrolled is not None : self . vbox . remove ( self . scrolled ) if self . scrolled_text is not None : self . vbox . remove ( self . scrolled_text ) self . scrolled = gtk . ScrolledWindow ( ) self . scrolled_text = gtk . ScrolledWindow ( ) self . textview = TextView ( ) self . treeview = TreeView ( self . textview , self . nms_accessor , self . combobox . get_active_text ( ) ) if self . treeview is not None : self . scrolled . remove ( self . treeview ) self . scrolled . add_with_viewport ( self . treeview ) if self . textview is not None : self . scrolled_text . remove ( self . textview ) self . scrolled_text . add_with_viewport ( self . textview ) self . vbox . pack_start ( self . scrolled ) self . vbox . pack_start ( self . scrolled_text ) self . show_all ( )
Change which device we're looking at.
Change which device we ' re looking at .
"""
		Change which device we're looking at.
		"""
self
widget
data