Button Acction commands to Perspectve

Hi I need to convert a Vision project to Perspective. There are two action from two diferent buttons that I need to make at perspective. Could you tell me the equivalent action for the perspective buttons below?

Button 1
system.security.logout()

Button 2
if system.gui.isTouchscreenModeEnabled()==0:
system.gui.setTouchscreenModeEnabled(1)
event.source.parent.blnTouchMode=1
else:
system.gui.setTouchscreenModeEnabled(0)
event.source.parent.blnTouchMode=0

Thank you very much.

Leandro

  1. system.perspective.logout - Ignition User Manual 8.1 - Ignition Documentation

  2. There is no analogue for touchscreen mode in Perspective. The browser environment automatically shows the OS on-screen keyboard when necessary.