Beispiel #1
0
        def SetHotkey():
            hotkey = str(keyboard.read_key())
            end = hotkey.rfind(' down')
            self.copyhotkey = hotkey[14:end]

            t = Toplevel()
            t.title("New Hotkey")
            t.label = Label(t, text='You chose: ' + self.copyhotkey)
            t.label.pack()
            return self.copyhotkey
Beispiel #2
0
def window2():  # функція для вікна 2
    tl = Toplevel(root)  # 2. root віджет до якого прив'язане другорядне вікно
    # виводить на екран вікно 2
    tl.title('Нове вікно. Мої контакти')
    print('A')

    # f = open('my_contacts.txt')
    # for line in f:
    #     line
    #     print(f)
    #     #tl.text = f
    #
    # f.close()
    # print('B')

    with open('my_contacts.txt', 'r') as f:  # зчитуємо файл
        nums = f.readlines()
    print(nums)
    tl.label(nums)
    f.close()
    print('B')

    tl.label.pack()  # упаковуємо label
Beispiel #3
0
 def RenameMethods():
     t = Toplevel()
     t.title("Rename Methods")
     t.label = Label(t, text='Here are your options for renaming!')
     t.label.pack()
     t.label2 = Label(t, text='1. Artist - Title')
     t.label2.pack()
     t.label3 = Label(t, text='2. Album - Title')
     t.label3.pack()
     t.label4 = Label(t, text='3. Artist - Album - Title')
     t.label4.pack()
     t.label5 = Label(t, text='4. Album - Artist - Title')
     t.label5.pack()
     t.label6 = Label(t, text='5. Title')
     t.label6.pack()
     t.label7 = Label(t, text='6. Don\'t Rename')
     t.label7.pack()
Beispiel #4
0
    def fathers_day_dialog(self):
        """
        Creates a single dialog window to actually 
        terminate the process.
        """
        f_root = Toplevel(self.master)
        f_root.label = Label(
            f_root,
            bg="red",
            text="Happy fathers day from your favorite script kiddie.")
        f_root.label.pack()

        f_root.button = Button(
            f_root,
            bg="green",
            text="Click this button to close all windows for real.",
            command=self.destroy_all)
        f_root.button.pack()
Beispiel #5
0
        def Help():
            t = Toplevel()
            t.title("Help")

            t.label = Label(t, text='This small program will read the currently playing song from VLC and copy it to a folder of your choosing.')
            t.label.pack()
            t.label2 = Label(t, text='Great for easily making playlists from large libraries!')
            t.label2.pack()
            t.label3 = Label(t, text='')
            t.label3.pack()
            t.label4 = Label(t, text='')
            t.label4.pack()
            t.label5 = Label(t, text='Before you can use this program you need to make sure you have a few settings set correctly in VLC.')
            t.label5.pack()
            t.label6 = Label(t, text='Make sure you pick "All" for "Show Settings" in the bottom left of your Preferences')
            t.label6.pack()
            t.label7 = Label(t, text='First check the "Web" box at Tools -> Preferences -> Interface -> Main interfaces')
            t.label7.pack()
            t.label8 = Label(t, text='Next set your password at Tools -> Preferences -> Interface -> Main interfaces -> Lua -> Lua HTTP')
            t.label8.pack()
            t.label9 = Label(t, text='Finally, go to Tools -> Preferences -> Input / Codecs and scroll down to Network Settings and set your "HTTP Server Port"')
            t.label9.pack()
            t.label10 = Label(t, text='Save your settings and restart VLC and you should be good to go!')
            t.label10.pack()