Ubuntu Pastebin

Paste from rhuddie at Thu, 30 Apr 2015 15:59:03 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
=== modified file 'docs/tutorial/advanced_autopilot.rst'
--- docs/tutorial/advanced_autopilot.rst	2015-04-30 10:46:21 +0000
+++ docs/tutorial/advanced_autopilot.rst	2015-04-30 15:56:09 +0000
@@ -525,13 +525,7 @@
     class CustomProxyObjectBase(ProxyBase):
         """A base class for all custom proxy objects within this test suite."""
 
-For Ubuntu applications using Ubuntu UI Toolkit objects, you should derive your custom proxy object from UbuntuUIToolkitCustomProxyObjectBase. This base class is also derived from :class:`~autopilot.introspection.ProxyBase` and is used for all Ubuntu UI Toolkit custom proxy objects. So if you are introspecting objects from Ubuntu UI Toolkit then this is the base class to use::
-
-    import ubuntuuitoolkit
-    
-    class CustomProxyObjectBase(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
-        """A base class for all custom proxy objects within this test suite."""
-
+For Ubuntu applications using Ubuntu UI Toolkit objects, you should derive your custom proxy object from UbuntuUIToolkitCustomProxyObjectBase. This base class is also derived from :class:`~autopilot.introspection.ProxyBase` and is used for all Ubuntu UI Toolkit custom proxy objects. So if you are introspecting objects from Ubuntu UI Toolkit then this is the base class to use.
 
 2. Define the classes you want autopilot to use, instead of the default. The simplest method is to give the class the same name as the type you wish to override. For example, if you want to define your own custom class to be used every time autopilot generates an instance of a 'QLabel' object, the class definition would look like this::
 
@@ -551,6 +545,8 @@
 
 An example using Ubuntu UI Toolkit which would be used to swipe up a PageWithBottomEdge object to reveal it's bottom edge menu could look like this::
 
+    import ubuntuuitoolkit
+
     class PageWithBottomEdge(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
         """An emulator class that makes it easy to interact with the bottom edge
            swipe page"""
Download as text