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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/PyXRD-0.5.4/pyxrd/generic/plot/plotters.py   PyXRD(Download)
from pyxrd.generic.custom_math import smooth, add_noise
 
from draggables import DraggableMixin
 
def getattr_or_create(obj, attr, create):
def make_draggable(artist, drag_x_handler=None, drag_y_handler=None):
    if artist != None:
        draggable = getattr(artist, "__draggable", None)
        if draggable == None:
            draggable = DraggableMixin(artist, drag_x_handler, drag_y_handler)