Skip to content

Instantly share code, notes, and snippets.

@vovkkk
vovkkk / launcher.pyw
Last active December 31, 2015 13:09
Simple skeleton to create launcher with buttons from tuple of tuples `self.cmds_to_launch`: first element ('bla') is label text to display on button; second element ('some command') is actual command to run when corresponding button pressed. Note that `self.cmds_to_launch` may contain any amount of tuples, provide no scrolling though.
#!python
# coding=utf-8
import Tkinter as tk
import ttk, subprocess
class Launcher(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.geometry("-0+30")
self.cmds_to_launch = (