Skip to content

Instantly share code, notes, and snippets.

View Tabs.py
# Allows for tabbed editing within the pythonista editor
import ui
import editor
import sqlite3 as sql
import console
import os
from math import pi
open_tabs = {}
num_of_tabs = 0
View Tabs.py
# Allows for tabbed editing within the pythonista editor
import ui
import editor
import sqlite3 as sql
import console
import os
from math import pi
open_tabs = {}
num_of_tabs = 0
View Tabs.py
# Allows for tabbed editing within the pythonista editor
import ui
import editor
import sqlite3 as sql
import console
import os
from math import pi
open_tabs = {}
num_of_tabs = 0
@pysmath
pysmath / Tabs.py
Last active Aug 29, 2015
Fixes more tab color issues and fixes bug in last upload
View Tabs.py
# Allows for tabbed editing within the pythonista editor
import ui
import editor
import sqlite3 as sql
import console
import os
from math import pi
available_width = 500
open_tabs = {}
View open_in.py
''' This script allows you to copy a .py script to the iOS clipboard and then use Open In...
to have that script saved in Pythonista. This requires both the Workflow and Pythonista apps
and the workflow at https://workflow.is/workflows/8cdee57f79664205a6a565c9cbdb3d48 '''
import clipboard
import console
import os
import sys
import editor
View File_selector.py
# coding: utf-8
import ui
import os.path
import os
import clipboard
def loadFolder(sender):
selection = sender.items[sender.selected_row]
path = os.path.join(sender.path, selection)