Exemple #1
0
def getReplyScreen(postid, title, voteCount, previousvote, img, source_url, timestamp, mediaType, caption):
    """Creates and switches to the reply screen of a given post"""
    
    if App.get_running_app().manager.has_screen("reply_" + postid) is False:
        
        img2 = imageButton(source=img.source)
        originalPost = postCell(postid, title, voteCount, previousvote, img2, source_url, timestamp, mediaType, caption, True)
        
        scrn = replyScreen()
        scrn.defineVals(postid, originalPost)
        scrn.name = "reply_" + postid
        App.get_running_app().manager.add_widget(scrn)
        
    App.get_running_app().changeScreen("reply_" + postid)
    App.get_running_app().manager.get_screen("reply_" + postid).setOP()
    Clock.schedule_once(App.get_running_app().manager.get_screen("reply_" + postid).display, 0.5)
Exemple #2
0
__version__ = "0.1"