ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class Fedora11Window.Fedora11Window(system, config, app=None)¶
I encapsulate all the information about a window on Fedora Core 11 with the default look and feel, and how to interact with the window.
Parameters:
system: a handle to the remote <no title> on which this window “lives”
config: a <no title> object
app: if present, its a handle to the application controlling this Window
- at_bottom()¶
Return: True iff the window is scrolled to the bottom
- at_top()¶
Return: True iff the window is scrolled to the top
- can_scroll()¶
Return: True iff there is an enabled verticle scrollbar
- get_focus()¶
Switch the system so that this window has focus.
Return: a boolean indicating whether or not this failed
- has_focus()¶
Tell whether or not this window has focus. Obviously this may not always be 100% reliable, but hopefully it works most of the time.
Return: a boolean whether or not this window has focus
- save_state()¶
Save the current state of this window – assuming it is currently on top. Temporary (hopefully) restriction: the Window must be maximized.
- scroll_down(times)¶
Click the scroll down button some number of times.
Parameters:
times: the number of times to click the down arrow
- scroll_up(times)¶
Click the scroll up button some number of times.
Parameters:
times: the number of times to click the up arrow