예제 #1
0
	def __init__(self):
		QWidget.__init__(self)
		self.sun=1
		hbox=QHBoxLayout(self)
		mainLayout = QSplitter(Qt.Horizontal)
       # splitter1 = QtGui.QSplitter(QtCore.Qt.Horizontal)
		self.three_d=display_widget()
		self.three_d.show()

		self.frame=layer_widget()

		self.frame.changed.connect(self.three_d.recalculate)
		
		mainLayout.addWidget(self.frame)
		mainLayout.addWidget(self.three_d)
		hbox.addWidget(mainLayout)
		
		self.setLayout(hbox)

		if enable_webupdates()==True:
			print("Looking for updates")
			self.web_update=update_thread()
			self.web_update.got_data.connect(self.got_help)
			self.web_update.start()
		self.frame.tab.itemSelectionChanged.connect(self.layer_selection_changed)
예제 #2
0
	def callback_layer_editor(self):
		help_window().help_set_help(["layers.png",_("<big><b>Device layers</b></big>\nUse this window to configure the structure of the device.")])

		if self.layer_editor==None:
			self.layer_editor=layer_widget()

		if self.layer_editor.isVisible()==True:
			self.layer_editor.hide()
		else:
			self.layer_editor.show()
예제 #3
0
	def init(self):
		self.sun=1
		main_hbox=gtk.HBox()
		self.darea = gtk.DrawingArea()
		self.darea.connect("expose-event", self.expose)
		#darea.show()

		self.tooltips=gtk.Tooltips()
		self.frame=layer_widget(self.tooltips)
		main_hbox.pack_start(self.frame, False, False, 0)
		main_hbox.pack_start(self.darea, True, True, 0)

		self.frame.connect("refresh", self.update)

		self.add(main_hbox)
		self.show_all()