Lines Matching defs:width
139 'turtlesize', 'undo', 'undobufferentries', 'up', 'width',
148 'turtlesize', 'up', 'width']
150 _CFG = {"width" : 0.5, # Screen
337 def __init__(self, master, width=500, height=350,
339 TK.Frame.__init__(self, master, width=width, height=height)
341 self.width, self.height = width, height
344 self._canvas = TK.Canvas(master, width=width, height=height,
373 self._canvas.xview_moveto(0.5*(self.canvwidth - self.width + 30) /
438 def setupcanvas(self, width, height, cwidth, cheight):
439 self._canvas = ScrolledCanvas(self, width, height, cwidth, cheight)
445 def set_geometry(self, width, height, startx, starty):
446 self.geometry("%dx%d%+d%+d"%(width, height, startx, starty))
471 img = TK.PhotoImage(width=1, height=1, master=self.cv)
487 w = int(self.cv.cget("width"))
500 outline=None, width=None, top=False):
519 if width is not None:
520 self.cv.itemconfigure(polyitem, width=width)
527 return self.cv.create_line(0, 0, 0, 0, fill="", width=2,
531 fill=None, width=None, top=False):
535 width is width of drawn line.
548 if width is not None:
549 self.cv.itemconfigure(lineitem, width=width)
789 """ Return the width and height of the turtle window.
791 width = self.cv.winfo_width()
792 if width <= 1: # the window isn't managed by a geometry manager
793 width = self.cv['width']
797 return width, height
1310 """ Return the width of the turtle window.
1490 canvwidth -- positive integer, new width of canvas in pixels
2073 def pensize(self, width=None):
2076 Aliases: pensize | width
2079 width -- positive number
2081 Set the line thickness to width or return it. If resizemode is set
2089 >>> turtle.pensize(10) # from here on lines of width 10 are drawn
2091 if width is None:
2093 self.pen(pensize=width)
2473 width = pensize
2795 outline determines the width of the shapes's outline.
3028 width=w, top=True)
3035 outline=self._cc(oc), width=self._outlinewidth, top=True)
3078 width=w, top=True)
3091 outline=self._cc(oc), width=self._outlinewidth, top=True)
3199 fill="", width=self._pensize)
3231 screen._drawline(cLI, pl, fill=usepc, width=ps)
3258 fill="", width=ps)
3700 width = _CFG["width"]
3706 self._root.setupcanvas(width, height, canvwidth, canvheight)
3709 self.setup(width, height, leftright, topbottom)
3711 def setup(self, width=_CFG["width"], height=_CFG["height"],
3716 width: as integer a size in pixels, as float a fraction of the screen.
3728 >>> screen.setup (width=200, height=200, startx=0, starty=0)
3732 >>> screen.setup(width=.75, height=0.5, startx=None, starty=None)
3740 if isinstance(width, float) and 0 <= width <= 1:
3741 width = sw*width
3743 startx = (sw - width) / 2
3748 self._root.set_geometry(width, height, startx, starty)
4011 width(3)
4024 width(1)