from http.server import BaseHTTPRequestHandler, HTTPServer
PAGE = b'''<!doctype html><html><meta name="color-scheme" content="light"><title>Native select demo</title><style>body{font:24px system-ui;margin:48px;background:#fff;color:#171717}select{font:24px system-ui;width:240px;padding:12px}output{display:block;margin-top:32px}</style><h1>Native select</h1><p>Choose Two with the pointer.</p><select aria-label="Number" onchange="document.querySelector('output').textContent='Selected: '+this.value"><option>One</option><option>Two</option></select><output>Selected: One</output></html>'''
class Handler(BaseHTTPRequestHandler):
 def do_GET(self):
  self.send_response(200);self.send_header('Content-Type','text/html');self.end_headers();self.wfile.write(PAGE)
HTTPServer(('0.0.0.0',18765),Handler).serve_forever()
