def test(): cursor = StdCursors.finger win = Window(title = "Cursor", width = 500, height = 400) view1 = TestDrawing(position = (20, 20), size = (100, 70), cursor = cursor) view2 = TestScrollableView(position = (140, 20), size = (200, 200), scrolling = 'hv') view2.cursor = cursor win.add(view1) win.place(view2, sticky = 'nsew') win.shrink_wrap((20, 20)) win.show()
def test(): cursor = StdCursors.finger win = Window(title="Cursor", width=500, height=400) view1 = TestDrawing(position=(20, 20), size=(100, 70), cursor=cursor) view2 = TestScrollableView(position=(140, 20), size=(200, 200), scrolling='hv') view2.cursor = cursor win.add(view1) win.place(view2, sticky='nsew') win.shrink_wrap((20, 20)) win.show()
def test(): file = "grail_masked.tiff" # file = "spam_masked.tiff" image = Image(os.path.join(sys.path[0], file)) cursor = Cursor(image) win = Window(title="Image Cursor", width=500, height=400) view1 = TestDrawing(position=(20, 20), size=(100, 70), cursor=cursor) view2 = TestScrollableView(position=(140, 20), size=(200, 200), scrolling="hv") view2.cursor = cursor win.add(view1) win.place(view2, sticky="nsew") win.shrink_wrap((20, 20)) win.show()
def test(): file = "grail_masked.tiff" #file = "spam_masked.tiff" image = Image(os.path.join(sys.path[0], file)) cursor = Cursor(image) win = Window(title = "Image Cursor", width = 500, height = 400) view1 = TestDrawing(position = (20, 20), size = (100, 70), cursor = cursor) view2 = TestScrollableView(position = (140, 20), size = (200, 200), scrolling = 'hv') view2.cursor = cursor win.add(view1) win.place(view2, sticky = 'nsew') win.shrink_wrap((20, 20)) win.show()