1
from Tkinter import *

root = Tk()

def printt(self):
     repair = Tk()
     repairwindow = Frame(repair, bg='white', width=800, height=800)
     repairwindow.pack(expand=True, fill='both', side='right')
     repair.mainloop()


mainarea = Frame(root, bg='grey', width=1200, height=1000)
mainarea.pack(expand=True, fill='both', side='right')

label1 = Label( mainarea, width=40, height = 5 , text="New Quotation", 
relief=GROOVE )
label1.place(relx=.5, rely=.5, anchor="center")
label1.bind("<Button-1>",printt)

label2 = Label( mainarea, width=15, height = 3 , text="Update", 
relief=GROOVE 
)
label2.place(relx=.45, rely=.6, anchor="center")
label2.bind("<Button-1>",printt)

label3 = Label( mainarea, width=15, height = 3 , text="Report", 
relief=GROOVE )
label3.place(relx=.55, rely=.6, anchor="center")
label3.bind("<Button-1>",printt)

label4 = Label( mainarea, width=40, height = 5 , text="Data Base", 
relief=GROOVE )
label4.place(relx=.5, rely=.7, anchor="center")
label4.bind("<Button-1>",printt)

root.attributes('-alpha', 0.98)
root.mainloop()

I need to add a clicking effect for the label her and also want to change the colour of window and if possible its size!! This code is in tkinter and i dnt have much idea about the gui desiging using tkinter. Is it good for deaktop application.

Referance Pic

  • top border is created/controlled by system. You can use `root.overrideredirect(True)` to create borderless window and then you can create own top border but I don't know if you can get all functionality as in system border (ie. popup menu on right mouse click) – furas Dec 16 '17 at 16:24
  • size `root.geometry('500x300')`, size and position `root.geometry('500x300+500+500')` – furas Dec 16 '17 at 16:25
  • example [tkinter-borderless-window](https://github.com/furas/python-examples/blob/master/tkinter/window-borderless/main.py) – furas Dec 16 '17 at 16:45

0 Answers0