Use float for x,y,w,h
This commit is contained in:
parent
5f93f41387
commit
53d9686e6e
@ -68,13 +68,13 @@ class GridLayout:
|
|||||||
|
|
||||||
class GridGroup(goocanvas.Group):
|
class GridGroup(goocanvas.Group):
|
||||||
__gproperties__ = {
|
__gproperties__ = {
|
||||||
'x' : (int, None, None, 0, 1600, 800,
|
'x' : (float, None, None, -10e6, 10e6, 800.0,
|
||||||
gobject.PARAM_READWRITE),
|
gobject.PARAM_READWRITE),
|
||||||
'y' : (int, None, None, 0, 1200, 600,
|
'y' : (float, None, None, -10e6, 10e6, 600.0,
|
||||||
gobject.PARAM_READWRITE),
|
gobject.PARAM_READWRITE),
|
||||||
'width' : (int, None, None, 0, 1600, 800,
|
'width' : (float, None, None, 0, 10e6, 800.0,
|
||||||
gobject.PARAM_READWRITE),
|
gobject.PARAM_READWRITE),
|
||||||
'height' : (int, None, None, 0, 1200, 600,
|
'height' : (float, None, None, 0, 10e6, 600.0,
|
||||||
gobject.PARAM_READWRITE)
|
gobject.PARAM_READWRITE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@ import gtk
|
|||||||
|
|
||||||
class ScreenContainer(gobject.GObject):
|
class ScreenContainer(gobject.GObject):
|
||||||
__gproperties__ = {
|
__gproperties__ = {
|
||||||
'width' : (int, None, None, 0, 1600, 800,
|
'width' : (float, None, None, 0, 10e6, 800.0,
|
||||||
gobject.PARAM_READABLE),
|
gobject.PARAM_READABLE),
|
||||||
'height' : (int, None, None, 0, 1200, 600,
|
'height' : (float, None, None, 0, 10e6, 600.0,
|
||||||
gobject.PARAM_READABLE)
|
gobject.PARAM_READABLE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user