Upload files to 'UI'
This commit is contained in:
parent
85e2b1dfbf
commit
146b224545
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ from settings import talk
|
||||||
from UI import UI_color
|
from UI import UI_color
|
||||||
|
|
||||||
def roundrect(layer, win, x, y, width, height, r, button=False, icon=False,
|
def roundrect(layer, win, x, y, width, height, r, button=False, icon=False,
|
||||||
tip="", fill=True, url="", clip=False):
|
tip="", fill=True, url="", clip=False, offset=[0,0]):
|
||||||
|
|
||||||
# This function draws a rectangle with rounded edges.
|
# This function draws a rectangle with rounded edges.
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@ def roundrect(layer, win, x, y, width, height, r, button=False, icon=False,
|
||||||
layer.stroke()
|
layer.stroke()
|
||||||
|
|
||||||
|
|
||||||
if win.current['mx'] in range(int(x), int(x+width)) \
|
if win.current['mx'] in range(int(x+offset[0]), int(x+width+offset[0])) \
|
||||||
and win.current['my'] in range(int(y), int(y+height)) :
|
and win.current['my'] in range(int(y+offset[1]), int(y+height+offset[1])) :
|
||||||
do = True
|
do = True
|
||||||
|
|
||||||
if clip:
|
if clip:
|
||||||
|
|
Loading…
Reference in a new issue