Jump to content

noggle

New Member
  • Content Count

    1
  • Joined

  • Last visited

  1. I'm trying to use a Script filter to show 16:9 and 4:3 dimensions from a typed width. I can get it to work my code editor, but not Alfred. Please help me with this workflow. import sys query = {query} wide_ratio = (float(16 / 9)) wide_height = (int(query / wide_ratio)) trad_ratio = (float(4 / 3)) trad_height = (int(query / trad_ratio)) print (wide_ratio) print (trad_ratio) print (("16:9 ratio = ") + str(query) + str("w x ") + str(wide_height) + "h") print (("4:3 ratio = ") + str(query) + str("w x ") + str(trad_height) + "h") sys.stdout.write(query)
×
×
  • Create New...