omz:forum

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

    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 2
    • Best 0
    • Controversial 0
    • Groups 0

    JJGadgets

    @JJGadgets

    0
    Reputation
    261
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    JJGadgets Unfollow Follow

    Latest posts made by JJGadgets

    • RE: I cannot seem to get os.uname() in a console.alert()

      Okay, thanks! I must have been tired so I didn't realise my mistake (having slight fever and sore throat :/) 😅

      posted in Pythonista
      JJGadgets
      JJGadgets
    • I cannot seem to get os.uname() in a console.alert()

      So, I'm trying to make a Pythonista script that has this code:

      import os
      import sys
      import sysconfig
      
      #def uname():
      	#os.uname()
      	
      def alert(message):
          alert_result=console.alert('Kernel/uname info',message, button1='Dismiss',hide_cancel_button=True)
          return
      alert[os.uname()]
      
      

      However, I get a error of so:

      **TypeError:** 'function' object has no attribute '__getitem__'
      

      Can someone help?
      teacher walks into class okay bye! Will see responses after class in an hour :) thanks community!

      posted in Pythonista
      JJGadgets
      JJGadgets