Example #1
0
 def restart_miro(self):
     if self.os_name == "lin":
         config.start_miro_on_linux()
     else:
         App.focus(testsetup.launch_cmd())
     try:
         wait(Pattern("sidebar_top.png").similar(0.6),20)
     except:
         pass
Example #2
0
def launch_miro():
    """Open the Miro Application, the sets the region coords for searching.
    
    Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates.
    Returns the:
        
    """
    if launch_cmd() == "linux":
        if not exists("Sidebar", 3):
            config.start_miro_on_linux()
    else:
        App.open(launch_cmd())
    time.sleep(10)
Example #3
0
def launch_miro():
    """Open the Miro Application, the sets the region coords for searching.
    
    Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates.
    Returns the:
        
    """
    if launch_cmd() == "linux":
        if not exists("Sidebar",3):
            config.start_miro_on_linux()
    else:
        App.open(launch_cmd())
    time.sleep(10)
Example #4
0
def restart_miro(confirm=True):
    if config.get_os_name() == "lin":
        config.start_miro_on_linux()
    else:
        App.open(open_miro())
    if confirm == True:
        time.sleep(5)
        if exists(Pattern("icon-guide_active.png"),10) or \
           exists(Pattern("icon-guide.png"),10) or \
           exists("Miro",45):
            print "miro started"
        else:
            print("can't confirm miro restarted")
    else:
        time.sleep(5) #give it 5 secs - probably waiting for 1st time dialog or other
Example #5
0
    def launch_miro():
        """Open the Miro Application, the sets the region coords for searching.
        
        Uses the Miro Guides, Home icon, Bottom Corner, and VolumeBar to find coordinates.
        Returns the:
            
        SidebarRegion (s) - miro sidebar 
        MainViewRegion(m) - miro mainview
        TopHalfRegion (t) - top 1/2 of whole screen
        TopLeftRegion (tl) - top left of whole screen
        MainTitleBarRegion (mtb) - miro mainview title bar region

        Note - order mattters, this would be better as a dict.
        """
        if open_miro() == "linux":
            if not exists("Music",3):
                config.start_miro_on_linux()
        else:
            App.open(open_miro())
        if exists("Music",120) or \
           exists("icon-audio.png",120) :
            print "miro launched"
Example #6
0
 def restart_miro(self):
     if self.os_name == "lin":
         config.start_miro_on_linux()
     else:
         App.open(testsetup.launch_cmd())
     wait("Miro", 30)
Example #7
0
 def restart_miro(self):
     if self.os_name == "lin":
         config.start_miro_on_linux()
     else:
         App.open(testsetup.launch_cmd())
     wait("Miro", 30)