From 6c62945bee0249a45bc7b00fe0de9b00776f88aa Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 3 Feb 2017 16:22:48 +0300 Subject: [PATCH] Deleted deprecated parameter --- src/PYLIGHTGUI/PYLIGHTGUI.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PYLIGHTGUI/PYLIGHTGUI.py b/src/PYLIGHTGUI/PYLIGHTGUI.py index 14f3f02..03e8dbd 100644 --- a/src/PYLIGHTGUI/PYLIGHTGUI.py +++ b/src/PYLIGHTGUI/PYLIGHTGUI.py @@ -224,7 +224,7 @@ def loadfile(): "Error!", "Can not read file:\n%s"%(filename)) pass - sg.updateObjBrowser(True) + sg.updateObjBrowser() pass # Saving a text file @@ -278,12 +278,12 @@ def insertLine(): # If line not empty create first line if text != "\n": __data_model__.createObject(text,__data_model__.getParagraphs()[0]) - sg.updateObjBrowser(True) + sg.updateObjBrowser() return # Create paragraph if text == "\n": __data_model__.createObject() - sg.updateObjBrowser(True) + sg.updateObjBrowser() return else: if selcount == 0: @@ -298,7 +298,7 @@ def insertLine(): # Create line if(obj.getText() == "\n"): __data_model__.createObject(text,entry) - sg.updateObjBrowser(True); + sg.updateObjBrowser(); return else: QMessageBox.warning(sgPyQt.getDesktop(), @@ -337,7 +337,7 @@ def editLine(): QMessageBox.information(sgPyQt.getDesktop(), 'Info', 'Please, select one line!') - sg.updateObjBrowser(True); + sg.updateObjBrowser(); pass # Remove selected lines @@ -366,7 +366,7 @@ def removeLine(): pass pass __data_model__.removeObjects(lines) - sg.updateObjBrowser(True) + sg.updateObjBrowser() pass pass @@ -384,7 +384,7 @@ def clearAll(): renderer.RemoveActor(actor) pass pass - sg.updateObjBrowser(True) + sg.updateObjBrowser() pass # Display the selected line @@ -418,7 +418,7 @@ def clearParagraph(): global __data_model__ lines = sgPyQt.getChildren(sg.getSelected(0)) __data_model__.removeObjects(lines) - sg.updateObjBrowser(True) + sg.updateObjBrowser() pass # Erase the selected line -- 2.39.2