Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pysmath
pysmath / Tabs.py
Created October 9, 2014 02:10
Tabs
# 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
Created October 9, 2014 19:26
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
Created October 9, 2014 19:39
Tabs
# 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 August 29, 2015 14:07
Fixes more tab color issues and fixes bug in last upload
# 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 = {}
@pysmath
pysmath / open_in.py
Created June 3, 2015 14:03
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
@pysmath
pysmath / File_selector.py
Created January 22, 2016 04:45
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)