示例#1
0
 def __init__(self, gui, wmd):
     AsserterMixIn.__init__(self)
     GuiWidgetContainer.__init__(self, gui._automator.config)
     Locatable.__init__(self, gui, wmd)  #, parent, obj_name="GuiElement")
     SingleGuiWidget.__init__(self, gui, wmd)
     self.__gns = GNS(self, gui._gui_def)
     self.__finder = GuiElementFinder(self)
     self.__wmd_finder = GuiElementEmdFinder(self)
示例#2
0
 def __init__(self, gui, wmd, elements=None): #, parent=None):
     AsserterMixIn.__init__(self)
     Locatable.__init__(self, gui, wmd) #, parent)
     _Dispatchable.__init__(self)
     if elements:
         self.__elements = elements
         self._size = len(elements)
     else:
         self.__elements = list()   
     self._load_source_parser()
示例#3
0
 def __init__(self, text, *fargs, **fnargs):
     str.__init__(text)
     AsserterMixIn.__init__(self)
     self.__content = text
     self.__do_eval = False
     if type(self.__content) is not str:
         self.__do_eval = True
         self.__content = str(self.__content)
     self.__fargs = fargs
     self.__fnargs = fnargs
     if self.__fargs or self.__fnargs:
         self.format(*self.__fargs, **self.__fnargs)
示例#4
0
    def __init__(self, gui, wmd, elements=None, dispatcher=None): #, parent=None):
        AsserterMixIn.__init__(self)
        IterableAsserterMixin.__init__(self)
        Locatable.__init__(self, gui, wmd) #, parent)
        _Dispatchable.__init__(self)
        # When a mulit-element is created using a filter.
        if dispatcher is not None:
            self._dispatcher = dispatcher
        if not elements:
            self.__elements = list()
        else:
            self.__elements = list()
            self._size = len(elements)

        self._container = self.__elements

        self._load_source_parser()
示例#5
0
 def __init__(self, container):
     AsserterMixIn.__init__(self)
     IterableAsserterMixin.__init__(self)
     self._container = container
示例#6
0
文件: json.py 项目: h3xh4wk/arjuna
 def __init__(self, pydict: dict = None):
     _ArDict.__init__(self, pydict)
     AsserterMixIn.__init__(self)