Upload files to 'UI'
This commit is contained in:
parent
acc9501a24
commit
26d2187fa6
1 changed files with 11 additions and 9 deletions
|
@ -228,8 +228,8 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
|
|||
|
||||
win.images[cell][path] = "LOADING-IMAGE"
|
||||
|
||||
if win.imageload < 10:
|
||||
win.imageload += 1
|
||||
if win.imageload < 1: # This needs to be fixed. Because multithreading
|
||||
win.imageload += 1 # gives tons of errors when loading single images.
|
||||
def loadimage(layer, win ,path, x, y, width, height, fit):
|
||||
|
||||
# Loading the image into the cairo.
|
||||
|
@ -253,6 +253,7 @@ def image(layer, win ,path, x, y, width=0, height=0, fit="crop", cell=0):
|
|||
else:
|
||||
load1 = GdkPixbuf.Pixbuf.new_from_file("settings/themes/"\
|
||||
+win.settings["Theme"]+"/icons/blender.png")
|
||||
|
||||
os.remove("/tmp/vcstudio_blender_thumbnail"+part+".png")
|
||||
|
||||
|
||||
|
@ -742,12 +743,13 @@ def text(outlayer, win, name, x, y, width, height, set_text="", parse=False, fil
|
|||
if editable:
|
||||
UI_color.set(layer, win, "node_blendfile")
|
||||
if win.text[name]["cursor"][0] == win.text[name]["cursor"][1]:
|
||||
layer.rectangle(
|
||||
win.text[name]["cursor"][0]*12+5 +offsetX,
|
||||
5,
|
||||
(win.text[name]["cursor"][1]*12)-(win.text[name]["cursor"][0]*12)+2,
|
||||
30
|
||||
)
|
||||
if win.blink:
|
||||
layer.rectangle(
|
||||
win.text[name]["cursor"][0]*12+5 +offsetX,
|
||||
5,
|
||||
(win.text[name]["cursor"][1]*12)-(win.text[name]["cursor"][0]*12)+2,
|
||||
30
|
||||
)
|
||||
else:
|
||||
roundrect(layer, win,
|
||||
win.text[name]["cursor"][0]*12+5 +offsetX,
|
||||
|
|
Loading…
Add table
Reference in a new issue