How to use the eel.browsers function in Eel

To help you get started, we’ve selected a few Eel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github julesontheroad / NSC_BUILDER / py / ztools / lib / Interface.py View on Github external
print(".lnk file doesn't exist")
				return False
			shell = win32com.client.Dispatch("WScript.Shell")
			browserpath = shell.CreateShortCut(browserpath)
			browserpath=browserpath.Targetpath	
			eel.browsers.set_path('chrome', browserpath)
			About()
			print("Launched using: "+browserpath)
			eel.start('main.html', mode='chrome', size=(800, 720))			
		elif os.path.exists(chromiumpath):
			eel.browsers.set_path('chrome', chromiumpath)
			About()
			print("Launched using: "+chromiumpath)
			eel.start('main.html', mode='chrome', size=(800, 720))		
		elif os.path.exists(chromiumpath_alt):	
			eel.browsers.set_path('chrome', chromiumpath_alt)
			About()
			print("Launched using: "+chromiumpath_alt)
			eel.start('main.html', mode='chrome', size=(800, 720))		
		elif os.path.exists(slimpath):
			eel.browsers.set_path('chrome', slimpath)
			About()
			print("Launched using: "+slimpath)
			eel.start('main.html', mode='chrome', size=(800, 720))		
		elif os.path.exists(slimpath_alt):	
			eel.browsers.set_path('chrome', slimpath_alt)
			About()
			print("Launched using: "+slimpath_alt)
			eel.start('main.html', mode='chrome', size=(800, 720))						
		else:
			try:
				About()
github samuelhwilliams / Eel / eel / __init__.py View on Github external
def show(*start_urls):
    brw.open(start_urls, _start_args)