Ejemplo n.º 1
0
        int(width)
        int(height)
    except ValueError:
        #TODO: Show that the canvas size is invalid
        pass


dragged_widgets = list()  #of widgets
target_widget = None
target_dndw = None  #Stores the DndWidget form of the target widget (dndw stands for DND Widget)

root = tkinter.Tk()
root.geometry("800x600")
#############################################
#The home screen
home_screen = screens.ScreenXY("BreezyUI", root)

menu_bar = tkinter.Frame(root, height=600, width=200, bg="#878E88")
creation_bar = tkinter.Frame(root, height=200, width=600, bg="#C9CAC9")

width_lbl = tkinter.Label(root,
                          text="Width (px): ",
                          bg="#C9CAC9",
                          font=("Arial", 24))
height_lbl = tkinter.Label(root,
                           text="Height (px): ",
                           bg="#C9CAC9",
                           font=("Arial", 24))

width_entry = tkinter.Entry(root, width=10)
height_entry = tkinter.Entry(root, width=10)
Ejemplo n.º 2
0
                             command=Open,
                             font=("Wingdings", 12))

new_button = tkinter.Button(window,
                            text="2",
                            command=New,
                            font=("Wingdings", 12))

buttons = [
    bold_button, italic_button, underline_button, code_button, quote_button,
    link_button, image_button, save_button, open_button, new_button
]

button_x, button_y = 400, 5

main = screens.ScreenXY("DocEdit", window)

for button in buttons:
    button.config(width=1)
    button.config(height=1)
    button.config(relief=tkinter.FLAT)
    main.add_item(button, button_x, button_y)
    button_x += button.winfo_width() + 50

main.add_item(editor, 7, 40)
main.add_item(file_display, 75, 655)
main.add_item(count_display, 575, 655)
main.add_item(save_display, 75, 675)
main.add_item(changes_display, 575, 675)

heading = tkinter.Label(window, text="Add A Link", font=("Helvetica", 15))