You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import gtk
|
|
|
|
import _sugar
|
|
|
|
def points_to_pixels(points):
|
|
return points * _sugar.get_screen_dpi() / 72.0
|
|
|
|
def grid_to_pixels(units):
|
|
return units * gtk.gdk.screen_width() / 16
|
|
|
|
def microgrid_to_pixels(units):
|
|
return units * gtk.gdk.screen_width() / 80
|