Use float for x,y,w,h

This commit is contained in:
Marco Pesenti Gritti 2006-09-08 10:16:23 +02:00
parent 5f93f41387
commit 53d9686e6e
2 changed files with 6 additions and 6 deletions

View File

@ -68,13 +68,13 @@ class GridLayout:
class GridGroup(goocanvas.Group):
__gproperties__ = {
'x' : (int, None, None, 0, 1600, 800,
'x' : (float, None, None, -10e6, 10e6, 800.0,
gobject.PARAM_READWRITE),
'y' : (int, None, None, 0, 1200, 600,
'y' : (float, None, None, -10e6, 10e6, 600.0,
gobject.PARAM_READWRITE),
'width' : (int, None, None, 0, 1600, 800,
'width' : (float, None, None, 0, 10e6, 800.0,
gobject.PARAM_READWRITE),
'height' : (int, None, None, 0, 1200, 600,
'height' : (float, None, None, 0, 10e6, 600.0,
gobject.PARAM_READWRITE)
}

View File

@ -3,9 +3,9 @@ import gtk
class ScreenContainer(gobject.GObject):
__gproperties__ = {
'width' : (int, None, None, 0, 1600, 800,
'width' : (float, None, None, 0, 10e6, 800.0,
gobject.PARAM_READABLE),
'height' : (int, None, None, 0, 1200, 600,
'height' : (float, None, None, 0, 10e6, 600.0,
gobject.PARAM_READABLE)
}