-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mmclane
committed
Jan 22, 2018
1 parent
de73731
commit 373eebf
Showing
2 changed files
with
208 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"name": "Python", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${file}", | ||
"cwd": "${workspaceFolder}", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Attach", | ||
"type": "python", | ||
"request": "attach", | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "${workspaceFolder}", | ||
"port": 3000, | ||
"secret": "my_secret", | ||
"host": "localhost" | ||
}, | ||
{ | ||
"name": "Python: Terminal (integrated)", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${file}", | ||
"cwd": "", | ||
"console": "integratedTerminal", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [] | ||
}, | ||
{ | ||
"name": "Python: Terminal (external)", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${file}", | ||
"cwd": "", | ||
"console": "externalTerminal", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [] | ||
}, | ||
{ | ||
"name": "Python: Django", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${workspaceFolder}/manage.py", | ||
"cwd": "${workspaceFolder}", | ||
"args": [ | ||
"runserver", | ||
"--noreload", | ||
"--nothreading" | ||
], | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput", | ||
"DjangoDebugging" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Flask (0.11.x or later)", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": false, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter", | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"FLASK_APP": "${workspaceFolder}/quickstart/app.py" | ||
}, | ||
"args": [ | ||
"run", | ||
"--no-debugger", | ||
"--no-reload" | ||
], | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Flask (0.10.x or earlier)", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": false, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${workspaceFolder}/run.py", | ||
"cwd": "${workspaceFolder}", | ||
"args": [], | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
}, | ||
{ | ||
"name": "Python: PySpark", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"osx": { | ||
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit" | ||
}, | ||
"windows": { | ||
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd" | ||
}, | ||
"linux": { | ||
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit" | ||
}, | ||
"program": "${file}", | ||
"cwd": "${workspaceFolder}", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Module", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"module": "module.name", | ||
"cwd": "${workspaceFolder}", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Pyramid", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"cwd": "${workspaceFolder}", | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"args": [ | ||
"${workspaceFolder}/development.ini" | ||
], | ||
"debugOptions": [ | ||
"RedirectOutput", | ||
"Pyramid" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Watson", | ||
"type": "python", | ||
"request": "launch", | ||
"stopOnEntry": true, | ||
"pythonPath": "${config:python.pythonPath}", | ||
"program": "${workspaceFolder}/console.py", | ||
"cwd": "${workspaceFolder}", | ||
"args": [ | ||
"dev", | ||
"runserver", | ||
"--noreload=True" | ||
], | ||
"env": {}, | ||
"envFile": "${workspaceFolder}/.env", | ||
"debugOptions": [ | ||
"RedirectOutput" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
from kivy.app import App | ||
from kivy.uix.button import Button | ||
from kivy.uix.widget import Widget | ||
from kivy.uix.label import Label | ||
from kivy.uix.boxlayout import BoxLayout | ||
from kivy.app import App | ||
from kivy.graphics import Color, Rectangle | ||
from random import random as r | ||
from functools import partial | ||
|
||
|
||
class TestApp(App): | ||
def build(self): | ||
return Button(text='Hello World') | ||
wid = Widget() | ||
hello = Button(text='Hello World') | ||
other = Button(text='Something Else') | ||
|
||
layout = BoxLayout(size_hint=(1, None), height=50) | ||
layout.add_widget(hello) | ||
layout.add_widget(other) | ||
|
||
root = BoxLayout(orientation='vertical') | ||
root.add_widget(wid) | ||
root.add_widget(layout) | ||
|
||
TestApp().run() | ||
return root | ||
TestApp().run() |