Exemplo n.º 1
0
def main():
    root = Tkinter.Tk()
    root.wm_title("Multi-Column List")
    root.wm_iconname("mclist")

    import plastik_theme
    plastik_theme.install('~/tile-themes/plastik/plastik')

    app = App()
    root.mainloop()
def main():
    root = tkinter.Tk()
    root.wm_title("Multi-Column List")
    root.wm_iconname("mclist")

    import plastik_theme
    try:
        plastik_theme.install('~/tile-themes/plastik/plastik')
    except Exception:
        import warnings
        warnings.warn("plastik theme being used without images")

    app = App()
    root.mainloop()
Exemplo n.º 3
0
def main():
    root = Tkinter.Tk()
    root.wm_title("Multi-Column List")
    root.wm_iconname("mclist")

    import plastik_theme
    try:
        plastik_theme.install('~/tile-themes/plastik/plastik')
    except Exception:
        import warnings
        warnings.warn("plastik theme being used without images")

    app = App()
    root.mainloop()
Exemplo n.º 4
0
def main():
    root = Tk()
    root.wm_title("Multi-Column List")
    root.wm_iconname("mclist")

    # change plastik references to orange following lines
    import plastik_theme

    try:  #
        plastik_theme.install('plastik')  # change to directory you are using
    except Exception:
        import warnings
        warnings.warn("plastik theme being used without images")

    App()
    root.mainloop()
Exemplo n.º 5
0
def main():
    root = Tkinter.Tk()
    root.wm_title("Multi-Column List")
    root.wm_iconname("mclist")

    import plastik_theme
    plastikimg = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                              'img')).replace('\\', '/')
    print('plastikimg =', plastikimg)
    try:
        # plastik_theme.install('~/tile-themes/plastik/plastik')
        plastik_theme.install(plastikimg)
    except Exception:
        import warnings
        warnings.warn("plastik theme being used without images")

    app = App()
    root.mainloop()
Exemplo n.º 6
0
#import tkinter as tk
#import tkinter.ttk as ttk

from tkinter import *
import tkinter.ttk as ttk

import os
import plastik_theme

root = Tk()
plastik_theme.install('plastik_img')

scrollbar = ttk.Scrollbar(root)
scrollbar.pack(side=RIGHT, fill=Y)

"""
listbox = Listbox(root)
listbox.pack()

for i in range(100):
    listbox.insert(END, i)

listbox.config(yscrollcommand=scrollbar.set)
scrollbar.config(command=listbox.yview)
"""

mainloop()
Exemplo n.º 7
0
    def __init__(self):
        self.root = tk.Tk()
        self.root.title(_('Despertador'))
        self.root.geometry('474x163+230+129')
        # cargar el tema visual
        plastik_theme.install('tile-themes/plastik/plastik')
        style = ttk.Style()
        theme = style.theme_use()
        default = style.lookup(theme, 'background')
        self.root.configure(background=default)
        self.root.resizable(width=False, height=False)
        self.root.bind('<Escape>', self.root.quit)
        self.root.protocol('WM_DELETE_WINDOW', self.root.quit)
        self.combobox = tk.StringVar()
        self.combobox.set(comandos[0])
        self.entry = tk.StringVar()
        self.ayuda()

        self.tLa34 = ttk.Labelframe(self.root)
        self.tLa34.place(relx=0.06, rely=0.06, relheight=0.4, relwidth=0.66)
        self.tLa34.configure(text=_("Tiempo"))
        self.tLa34.configure(width="315")
        self.tLa34.configure(height="65")

        self.hora = ttk.Entry(self.tLa34)
        self.hora.place(relx=0.16, rely=0.36, relheight=0.42, relwidth=0.68)

        self.hora.configure(takefocus="")
        self.hora.configure(textvariable=self.entry)
        self.hora.configure(width="214")
        self.hora.configure(cursor="xterm")

        self.tLa36 = ttk.Labelframe(self.root)
        self.tLa36.place(relx=0.06, rely=0.49, relheight=0.4, relwidth=0.91)
        self.tLa36.configure(text=_("Archivo a reproducir"))

        self.ButFile = ttk.Button(self.tLa36)
        self.ButFile.place(relx=0.82, rely=0.32, relheight=0.5, relwidth=0.15)
        self.ButFile.configure(takefocus="")
        self.ButFile.configure(command=self.archivo)
        self.ButFile.configure(text="...")

        self.comando = ttk.Combobox(self.tLa36)
        self.comando.place(relx=0.05, rely=0.36, relheight=0.42, relwidth=0.7)
        self.comando.configure(height="19")
        self.comando.configure(takefocus="")
        self.comando.configure(textvariable=self.combobox)
        self.comando.configure(values=comandos)
        self.comando.configure(width="217")

        self.tBu38 = ttk.Button(self.root)
        self.tBu38.place(relx=0.78, rely=0.1)
        self.tBu38.configure(takefocus="")
        self.tBu38.configure(command=self.aceptar)
        self.tBu38.configure(text=_("Aceptar"))

        self.cpd39 = ttk.Button(self.root)
        self.cpd39.place(relx=0.78, rely=0.3)
        self.cpd39.configure(takefocus="")
        self.cpd39.configure(command=self.cancelar)
        self.cpd39.configure(text=_("Cancelar"))