WebI am trying to create a password generator that creates a new password for each individual line in a listbox, i have a listbox populated with names, im trying to get a loop that will count how many names there are in the list and for each one creat a password. i have the password generator im just trying to figure out how the loop would look. WebJul 7, 2016 · from Tkinter import * master = Tk () w = Canvas (master, width=200, height=100) w.pack () w.create_line (100, 0, 100, 100) #first 2 args are starting point of line and next 2 are ending point of line. mainloop () For adding other options, refer to canvas widget of tkinter Share Improve this answer Follow answered Jul 7, 2016 at 9:57 dazzieta
python - tkinter polygons - Stack Overflow
Web1 day ago · To display things on the canvas, you create one or more canvas items, which are placed in a stack. By default, new items are drawn on top of items already on the … WebMay 11, 2015 · To create a single pixel with co-ordinates x, y on a canvas, you can use a rectangle object: canvas.create_rectangle ( (x, y)*2 ) By default, the rectangle object has a one-pixel wide black border, which when one-pixel wide will just be … seward refrigeration companies house
Drawing in Tkinter - lines, shapes, colours, text, image - ZetCode
WebJul 19, 2024 · The coordinate origin should be the top left corner. For example if the screen is 300x300 then the window will have 3 lines (at 100, 200 and 300) on his X axis going from left to right and top up to bottom. A grid as a coordinate system. Example of how I create a normal line. I use a line class which contains 2 points start point and end point: WebI am trying to create a password generator that creates a new password for each individual line in a listbox, i have a listbox populated with names, im trying to get a loop that will … WebMay 1, 2015 · degrees=xnumberofdegrees lineEndPoint=degrees*someformulaforxandy canvas = Canvas (root, width=500, height=500, bg="white") canvas.pack () rotatedline=space.create_line (250,250,lineEndPoint) the start point should always be 250,250 since the canvas's size is 500x500, so I would only need the end point. Any help … seward redesign board of directors