-
Notifications
You must be signed in to change notification settings - Fork 248
/
Copy pathconsole-output-code.py
49 lines (30 loc) · 984 Bytes
/
console-output-code.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# coding: utf-8
# https://forum.omz-software.com/topic/3211/console-output-code/10
from __future__ import print_function
import ui
from objc_util import *
import console
import os
import sys, traceback
NSFileManager = ObjCClass('NSFileManager')
UIDevice = ObjCClass('UIDevice')
print('Enter directory')
path = raw_input()
files = NSFileManager.defaultManager().contentsOfDirectoryAtPath_error_(path,None)
print(files)
@ui.in_background
def file_browser(message):
alert_result=console.alert(path,path,'Dismiss',hide_cancel_button=True)
def back_console(sender):
console.show_input()
@ui.in_background
def about(message):
alert_result=console.alert('About', 'Project based off of Billy Ellis app called "iFiles" I take no credits for idea of this')
def find_ios(sender):
vers = UIDevice.currentDevice().systemVersion()
string = str(vers)
v = sender.superview
label = v['label1'].text = string
v = ui.load_view()
v.present('sheet')
# --------------------