交通安全に係るビッグデータを活用するためのデータプラットフォーム構築の試み
93/110

87 action) self.actions.append(action) return action def initGui(self): """Create the menu entries and toolbar icons inside the QGIS GUI.""" icon_path = ':/plugins/crash/icon.png' self.add_action( icon_path, text=self.tr(u'crashinfo'), callback=self.run, parent=self.iface.mainWindow()) def unload(self): """Removes the plugin menu item and icon from QGIS GUI.""" for action in self.actions: self.iface.removePluginMenu( self.tr(u'&crash_analysis'), action) self.iface.removeToolBarIcon(action) # remove the toolbar del self.toolbar # def Qtab_currentChange(self): def tab_reSet(self): # set the inntial value of tab_contents # mesh_tab self.dlg.radioButton_500mesh.setChecked(True) self.dlg.mesh_comboBox_start.addItems(years) self.dlg.mesh_comboBox_start.setCurrentIndex(0) self.dlg.mesh_comboBox_end.addItems(years) self.dlg.mesh_comboBox_end.setCurrentIndex(len(years)-1) self.dlg.mesh_radioButton_all.setChecked(True) # plot_tab self.dlg.radioButton_school.setChecked(True) self.dlg.plot_comboBox_start.addItems(years) self.dlg.plot_comboBox_start.setCurrentIndex(0) self.dlg.plot_comboBox_end.addItems(years) self.dlg.plot_comboBox_end.setCurrentIndex(len(years)-1) self.dlg.plot_radioButton_all.setChecked(True) def year_compare(self): # Judge the selected tab in the form if self.dlg.crash_map.currentIndex()==0: start=int(self.dlg.mesh_comboBox_start.currentText()) end=int(self.dlg.mesh_comboBox_end.currentText()) else: start=int(self.dlg.plot_comboBox_start.currentText()) end=int(self.dlg.plot_comboBox_end.currentText())

元のページ  ../index.html#93

このブックを見る