Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(17)  |  Derive(0)  |  Import(9)

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Demo/tkinter/guido/canvasevents.py   pytaint(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/p/y/Py2crazy-HEAD/Python-2.7.5/Demo/tkinter/guido/canvasevents.py   Py2crazy(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/p/y/PyCPython-HEAD/Python-2.7.1/Demo/tkinter/guido/canvasevents.py   PyCPython(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/i/n/IncPy-HEAD/Demo/tkinter/guido/canvasevents.py   IncPy(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/p/y/python-with-braces-HEAD/Demo/tkinter/guido/canvasevents.py   python-with-braces(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/p/y/python2.7-mod-HEAD/Demo/tkinter/guido/canvasevents.py   python2.7-mod(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/s/l/SlopPy-HEAD/Demo/tkinter/guido/canvasevents.py   SlopPy(Download)
#! /usr/bin/env python
 
from Tkinter import *
from Canvas import Oval, Group, CanvasText
 
    def createitems(self, fill, text):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill=fill, width=3)
        self.group.addtag_withtag(self.__oval)
    def createitems(self, *args):
        self.__oval = Oval(self.canvas,
                           self.x-20, self.y-10, self.x+20, self.y+10,
                           fill='gray', outline='')
        self.group.addtag_withtag(self.__oval)

src/p/y/pythello-0.1/pythello/servertk.py   pythello(Download)
from server import Server
 
from Canvas import Oval, Rectangle
from Tkinter import Button, Canvas, Tk
 
        self.pcbg = Rectangle(self.canvas, (W-PCW)//2, (H-PCH)//2, (W-PCW)//2+PCW, (H-PCH)//2+PCH, fill='white')
        self.pcprmpt = self.canvas.create_text((W-PCW)//2+2*S, (H-PCH)//2+S//3, text='Choose Players', anchor="n")
        self.pcbpiece = Oval(self.canvas, (W-S)//2-3*S//4, (H-PCH)//2+3*S//4, (W-S)//2+S//4, (H-PCH)//2+7*S//4, fill='black')
        self.pcwpiece = Oval(self.canvas, (W-S)//2+3*S//4, (H-PCH)//2+3*S//4, (W-S)//2+7*S//4, (H-PCH)//2+7*S//4, fill='white')
        self.pcbtxt = self.canvas.create_text((W-S)//2-S//4, (H-PCH)//2+2*S, text=self.PLAYERS[self.bpindex[0]], anchor="n")

src/p/y/pythello-0.1/pythello/boardtk.py   pythello(Download)
from functools import partial
from time import sleep
from Canvas import Rectangle, Oval
 
 
    def __init__(self, r, c, color, canvas):
        Piece.__init__(self, r, c, color)
        self.canvas = canvas
        self.oval = Oval(canvas, c*S, r*S, (c+1)*S, (r+1)*S, fill=color)