~ubuntu-branches/ubuntu/trusty/autokey/trusty

« back to all changes in this revision

Viewing changes to src/lib/qtui/data/api.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2012-03-11 00:00:17 UTC
  • mfrom: (1.4.3)
  • Revision ID: package-import@ubuntu.com-20120311000017-pt2qfmc29m5asxj0
Tags: 0.82.2-1
* New upstream version.
* Merge in packaging updates from upstream. (Closes: #634823)
* Update copyright information

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
clipboard.fill_clipboard(contents) Copy text into the clipboard
2
 
clipboard.fill_selection(contents) Copy text into the X selection
3
 
clipboard.get_clipboard() Read text from the clipboard
4
 
clipboard.get_selection() Read text from the X selection
5
 
dialog.choose_colour(title="Select Colour") Show a Colour Chooser dialog
6
 
dialog.choose_directory(title="Select Directory", initialDir="~", rememberAs=None) Show a Directory Chooser dialog
7
 
dialog.combo_menu(options, title="Choose an option", message="Choose an option") Show a combobox menu
8
 
dialog.input_dialog(title="Enter a value", message="Enter a value", default="") Show an input dialog
9
 
dialog.list_menu(options, title="Choose a value", message="Choose a value", default=None) Show a single-selection list menu
10
 
dialog.list_menu_multi(options, title="Choose one or more values", message="Choose one or more values", defaults=[]) Show a multiple-selection list menu
11
 
dialog.open_file(title="Open File", initialDir="~", fileTypes="*|All Files", rememberAs=None) Show an Open File dialog
12
 
dialog.password_dialog(title="Enter password", message="Enter password") Show a password input dialog
13
 
dialog.save_file(title="Save As", initialDir="~", fileTypes="*|All Files", rememberAs=None) Show a Save As dialog
14
1
engine.create_abbreviation(folder, description, abbr, contents) Create a text abbreviation
15
 
engine.create_hotkey(folder, description, modifiers, key, contents) Create a text hotkey.
 
2
engine.create_hotkey(folder, description, modifiers, key, contents) Create a text hotkey
16
3
engine.create_phrase(folder, description, contents) Create a text phrase
17
4
engine.get_folder(title) Retrieve a folder by its title
 
5
engine.get_macro_arguments() Get the arguments supplied to the current script via its macro
18
6
engine.run_script(description) Run an existing script using its description to look it up
19
 
keyboard.send_key(key, repeat=1) Send a keyboard event
20
 
keyboard.send_keys(keyString) Send a sequence of keys via keyboard events
 
7
engine.set_return_value(val) Store a return value to be used by a phrase macro
21
8
keyboard.fake_keypress(key, repeat=1) Fake a keypress
22
9
keyboard.press_key(key) Send a key down event
23
10
keyboard.release_key(key) Send a key up event
 
11
keyboard.send_key(key, repeat=1) Send a keyboard event
 
12
keyboard.send_keys(keyString) Send a sequence of keys via keyboard events
 
13
keyboard.wait_for_keypress(self, key, modifiers=[], timeOut=10.0) Wait for a keypress or key combination
24
14
mouse.click_absolute(x, y, button) Send a mouse click relative to the screen (absolute)
25
15
mouse.click_relative(x, y, button) Send a mouse click relative to the active window
 
16
mouse.click_relative_self(x, y, button) Send a mouse click relative to the current mouse position
 
17
mouse.wait_for_click(self, button, timeOut=10.0) Wait for a mouse click
 
18
clipboard.fill_clipboard(contents) Copy text into the clipboard
 
19
clipboard.fill_selection(contents) Copy text into the X selection
 
20
clipboard.get_clipboard() Read text from the clipboard
 
21
clipboard.get_selection() Read text from the X selection
 
22
dialog.choose_colour(title="Select Colour") Show a Colour Chooser dialog
 
23
dialog.choose_directory(title="Select Directory", initialDir="~", rememberAs=None, **kwargs) Show a Directory Chooser dialog
 
24
dialog.combo_menu(options, title="Choose an option", message="Choose an option", **kwargs) Show a combobox menu
 
25
dialog.input_dialog(title="Enter a value", message="Enter a value", default="", **kwargs) Show an input dialog
 
26
dialog.list_menu(options, title="Choose a value", message="Choose a value", default=None, **kwargs) Show a single-selection list menu
 
27
dialog.list_menu_multi(options, title="Choose one or more values", message="Choose one or more values", defaults=[], **kwargs) Show a multiple-selection list menu
 
28
dialog.open_file(title="Open File", initialDir="~", fileTypes="*|All Files", rememberAs=None, **kwargs) Show an Open File dialog
 
29
dialog.password_dialog(title="Enter password", message="Enter password", **kwargs) Show a password input dialog
 
30
dialog.save_file(title="Save As", initialDir="~", fileTypes="*|All Files", rememberAs=None, **kwargs) Show a Save As dialog
26
31
store.get_value(key) Get a value
27
32
store.remove_value(key) Remove a value
28
33
store.set_value(key, value) Store a value
29
34
system.create_file(fileName, contents="") Create a file with contents
30
35
system.exec_command(command, getOutput=True) Execute a shell command
31
 
window.activate(title, switchDesktop=False) Activate the specified window, giving it input focus
32
 
window.close(title) Close the specified window gracefully
 
36
window.activate(title, switchDesktop=False, matchClass=False) Activate the specified window, giving it input focus
 
37
window.close(title, matchClass=False) Close the specified window gracefully
 
38
window.get_active_class() Get the class of the currently active window
33
39
window.get_active_geometry() Get the geometry of the currently active window
34
 
window.move_to_desktop(title, deskNum) Move the specified window to the given desktop
35
 
window.close(title, xOrigin=-1, yOrigin=-1, width=-1, height=-1) Resize and/or move the specified window
36
 
window.set_property(title, title, action, prop) Set a property on the given window using the specified action
 
40
window.get_active_title() Get the visible title of the currently active window
 
41
window.move_to_desktop(title, deskNum, matchClass=False) Move the specified window to the given desktop
 
42
window.close(title, xOrigin=-1, yOrigin=-1, width=-1, height=-1, matchClass=False) Resize and/or move the specified window
 
43
window.set_property(title, action, prop, matchClass=False) Set a property on the given window using the specified action
37
44
window.switch_desktop(deskNum) Switch to the specified desktop
38
45
window.wait_for_exist(title, timeOut=5) Wait for window with the given title to be created
39
46
window.wait_for_focus(title, timeOut=5) Wait for window with the given title to have focus