omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. scarlett

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Best 0
    • Controversial 0
    • Groups 0

    scarlett

    @scarlett

    I am a Babby python programmer looking to start my journey in python and ruby

    0
    Reputation
    285
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Everett wa Age 35

    scarlett Unfollow Follow

    Latest posts made by scarlett

    • RE: Pyui button image options

      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
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      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
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

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

      posted in Pythonista
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      @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
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      @cvp not an infinite loop

      posted in Pythonista
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      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
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      Thanks for the help I really appreciate it

      posted in Pythonista
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

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

      posted in Pythonista
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

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

      posted in Pythonista
      scarlett
      scarlett
    • RE: First steps working in Pythonista for iPhone 11

      I am on my phone :(

      posted in Pythonista
      scarlett
      scarlett