• scarlett

    I am using Pythonista on my iPhone 11
    And I am writing this
    super().init( *args, **kwargs)
    However it still tells me super is not defined

    posted in Pythonista read more
  • scarlett

    So I figured out the program basement that I want to build I just needed working assets in order to do it

    The program is built as follows

    When you log in the main face of the Ui will look like this
    [
    Time
    H: M: S:

    Date
    Dd/mm/yyyy

    Login:

    User name:
    Pasword:
    Log in button
    ]
    When log in button is pressed it time stamps the entrance into the server and starts a running timer as to how long you and the user you are chatting with are in the chat room

    Use example below to insert code into proper places

    Code goes Between the brackets

    template for the programming is as follows

    [
    user code is as follows below

    copy as template for user B

    User A: logged in as username:
    User A: logged in with pasword:
    User A logged in with password and user name of password and username @(h:m:s)dd/mm/yyyy)
    [
    [
    [
    [User A connected with user B @ (h:m:s)(dd/mm/yyyy)

    User A&B logged in @(m:h:s)(mm/dd/yyyy)

    UserA total time stamp= log in time stamp + msg time stamp= total time online for user A

    User B : message time stamp + log in time stamp= total time online for user B

    Total time for user A+ total time for user B= total time of users in the chat room

    active chat ends depending on time between messages sent

    UserA: msg time stamp -userB message time stamp = time Afk or rather x# of hours idle

    Boot both users off server if user(A)and user (B) are afk for more than x# of hours Donot delete conversation

    If user A and user B are booted for afk save conversation to server and refetch at next login if same users connect

    User A log in and user B log in= fetch last conversation
    Last conversation = fetch tag
    userA last log out time stamp + user B last log out time stamp= total time on server
    fetch tag= last total time on line of user A and User B
    Fetch tag = git conversation of last total time on server of user a + user B
    find() time stamp

    posted in Pythonista read more
  • scarlett

    @cvp there is that and right now the stuff is acting screwy and what not I will try again later

    posted in Pythonista read more
  • scarlett

    @cvp I will have a better idea if I have a example of what yku are talking about if I could see the code

    posted in Pythonista read more
  • scarlett

    @cvp not an infinite loop

    posted in Pythonista read more
  • scarlett

    Oh can I join these two pieces of code together to make them work together
    Start of interactive chat box

    import ui
    
    def button_tapped(sender):
        sender.title = 'Hello'
    
    view = ui.View()                                      
    view.name = 'Demo'                                    
    view.background_color = 'white'                       
    button = ui.Button(title='Tap me!')                   
    button.center = (view.width * .5, view.height * .5) 
    button.flex = 'LRTB'                                  
    button.action = button_tapped                         
    view.add_subview(button)                              
    view.present('sheet')                                 
    
    from datetime import datetime
    from time import sleep
    
    from console import clear
    
    
    def clock():
        while True:
            print(f"{datetime.now():%m/%d/%Y\n%H:%M:%S}")
            sleep(1)
            clear()
    
    clock()
    

    posted in Pythonista read more
  • scarlett

    Thanks for the help I really appreciate it

    posted in Pythonista read more
  • scarlett

    Why does the bottom peice of code have a n infront of the h

    posted in Pythonista read more
  • scarlett

    How would I change the format to make it
    Mm/dd/yyyy
    00:00:00

    posted in Pythonista read more
  • scarlett

    I am on my phone :(

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!