Place palettes at cursor for free views.
This commit is contained in:
@@ -18,12 +18,16 @@
|
||||
import gtk
|
||||
|
||||
from sugar.graphics import units
|
||||
from sugar.graphics.palette import Palette
|
||||
from sugar.graphics.palette import CanvasInvoker
|
||||
|
||||
class FrameCanvasInvoker(CanvasInvoker):
|
||||
def __init__(self, item):
|
||||
CanvasInvoker.__init__(self, item)
|
||||
|
||||
def get_default_position(self):
|
||||
return Palette.AROUND
|
||||
|
||||
def get_screen_area(self):
|
||||
x = units.grid_to_pixels(1)
|
||||
y = units.grid_to_pixels(1)
|
||||
|
||||
Reference in New Issue
Block a user