You are browsing as a guest. Sign up (or log in) to start making projects!

4h 2m 36s logged

At the moment, I am pushing aside the huge task of implementing the backend and instead working on the simpler task of front end. My application has gone through several iterations.

  • Before the buttons, I had tabs.
  • After the buttons, I decided to make a sidebar, and eventually I decided to move that sidebar to the side.
  • A lot of time has also been spent on figuring out how a grid layout is implemented by Tkinter. Such as, figuring out why putting a button in the 2nd column of 3, does not put it in the middle.
  • Eventually, I switched to using place, which gives more control, although figuring out why it caps at some values is an issue.
  • Now, I am figuring out Canvas, a subsidiary of Tkinter. Which will allow me to draw lines. I will use that to replace the box my labels are currently in.
  • The current problem is figuring out why I can not fill my lines. I can fill the Canvas upon which the line lays, but not the Canvas. The line being the outline, from what I can gather.
  • My code for this section is as follows:
    ‘’‘divider = tk.Canvas(self, width = 100, height = self.winfo_screenheight(), background = “yellow”) 
    divider.create_line(400, 400, 400, 0, fill = “blue”, width = 1)
    divider.place(relx = 0.26, rely = 0)’’’
0
1

Comments 0

No comments yet. Be the first!