Content deleted Content added
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
→Example: code style Black |
||
Line 40:
<syntaxhighlight lang="python">
#!/usr/bin/env
# The standard import stuff.
Line 48:
# Here we open the app.
launchapp(
# Now we find it and make sure it is open.
gedit_win = locate(
gedit_win.waittillguiexist()
# Now we type into gedit.
text_field = gedit_win.getchild(
text_field.enterstring("G'Day mate!")
# Save a picture to prove we did it.
imagecapture(
# Quit gedit.
quit = gedit_win.getchild(
quit.selectmenuitem()
# Close without saving.
dont_save = locate(
dont_save.waittillguiexist()
button = dont_save.getchild(
button.click()
|