How to draw a sudoku line in the canvas(GUI)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • starish
    New Member
    • May 2010
    • 2

    #1

    How to draw a sudoku line in the canvas(GUI)

    Hello,

    I already have a canvas for GUI but I don't how to draw a line for the game on the canvas.

    class View(Frame):

    def __init__(self, parent):
    Frame.__init__( self, parent, relief = SUNKEN, bd = 2, bg = 'grey')
    self.canvas = Canvas(self, width =600, height=400, bg='white')
    self.canvas.pac k()

    The codes above are for creating the canvas.

    I know that we have to use self.canvas.cre ate_line( ) to create the line but i don't know how to proceed. Hope you can help me with this.
Working...