This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys,os | |
import curses | |
def draw_menu(stdscr): | |
k = 0 | |
cursor_x = 0 | |
cursor_y = 0 | |
# Clear and refresh the screen for a blank canvas | |
stdscr.clear() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class customControl extends L.Control { | |
constructor(options) { | |
super(options); | |
this.options = { | |
position: 'topright', | |
}; | |
L.Util.setOptions(this, options); | |
} | |
onAdd() { | |
const container = L.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-custom'); |