"Error!",
"Can not read file:\n%s"%(filename))
pass
- sg.updateObjBrowser(True)
+ sg.updateObjBrowser()
pass
# Saving a text file
# 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:
# Create line
if(obj.getText() == "\n"):
__data_model__.createObject(text,entry)
- sg.updateObjBrowser(True);
+ sg.updateObjBrowser();
return
else:
QMessageBox.warning(sgPyQt.getDesktop(),
QMessageBox.information(sgPyQt.getDesktop(),
'Info',
'Please, select one line!')
- sg.updateObjBrowser(True);
+ sg.updateObjBrowser();
pass
# Remove selected lines
pass
pass
__data_model__.removeObjects(lines)
- sg.updateObjBrowser(True)
+ sg.updateObjBrowser()
pass
pass
renderer.RemoveActor(actor)
pass
pass
- sg.updateObjBrowser(True)
+ sg.updateObjBrowser()
pass
# Display the selected line
global __data_model__
lines = sgPyQt.getChildren(sg.getSelected(0))
__data_model__.removeObjects(lines)
- sg.updateObjBrowser(True)
+ sg.updateObjBrowser()
pass
# Erase the selected line