Explore chapters and articles related to this topic
Smart Attendance cum Health Check-up Machine for Students/Villagers/Company Employees
Published in Rekh Ram Janghel, Rohit Raja, Korhan Cengiz, Hiral Raja, Next Generation Healthcare Systems Using Soft Computing Techniques, 2023
Pranjal Patel, Shriram Sharma, Pritesh Sutrakar, Hemant Kumar, Devender Pal Singh, Menka Yadav
Tkinter is a GUI (graphical user interface) library in Python. Tkinter gives us a fast and easy way to build GUI-based applications. Tkinter also gives us a very powerful object-oriented interface to develop applications using GUI toolkits.
Exploring beneath the surface using interactive data transects
Published in Annals of GIS, 2021
In the input selection module, a window with four drop-down lists for selecting and ordering sub-surface layers as shown in Figure 2 will ‘pop up’ after clicking on the add-in toolbar. The pop-up window is implemented using the combobox widget in the ttk module of Tkinter package. Tkinter is a standard library, which is available with the installation of Python. However, the direct use of Tkinter as an add-in script to create a graphical user interface (GUI) will result in the ArcMap module crashing. To resolve this issue, the script for implementing the dialog window was put in a separate Python script file, which was then saved in the add-in’s Instal directory. The dialog is launched in a sub-process, and then the names of input layers are stored as a list and pass back to the add-in script using the communicate method in the Popen class of the sub-process module. Currently, the maximum number of input layers for the transect tool is four; this limit could be increased but four layers are sufficient to demonstrate the utility of the tool. If there are fewer than four layers, the user would complete the drop-down list from the bottom layer to the top layer, and leave the remaining layers blank. The choices of each drop-down menu are the names of the raster layers that exist within the active data frame of the current map document; thus, the sub-surface datasets need to be added in ArcMap before applying the transect tool.