Commit 0065b834 authored by carlosperate's avatar carlosperate

Update TODO list, copyright headers and minor whitespaces.

parent 209ab014
......@@ -30,8 +30,8 @@ class ServerCompilerSettingsTestCase(unittest.TestCase):
ServerCompilerSettings()
instance_1 = ServerCompilerSettings()
instance_1._drop()
self.assertEqual(instance_1._ServerCompilerSettings__singleton_instance,
None)
self.assertIsNone(
instance_1._ServerCompilerSettings__singleton_instance)
#
# Testing the compiler_dir getter and setter
......
......@@ -36,8 +36,10 @@ There was an error manipulating the sketch data!!
- [ ] math_number getType to use regular expressions more efficiently
- [ ] math_on_list to add static type if lists get implemented
- [ ] controls_for getVarType function
- [ ] controls_forEach block uses lists, these are not implemented in the Arduino generator (possible arrays), when implemented this block needs a getVarType, varType, and getType functions.
- [ ] controls_forEach block uses lists, these are not implemented in the Arduino generator (possible arrays), when implemented this block needs a getVarType, varType, and getType functions
- [ ] add getVarType to the procedures blocks
- [ ] the loops count type is set to int, user could input a decimal, so add input checking to determine type
- [ ] Number blocks automatically trim unnecessary decimal digits "x.0 => x", change this behavior so that "x.0" can be set as a decimal
## Arduino related code
......@@ -46,15 +48,15 @@ There was an error manipulating the sketch data!!
## Arduino blocks
- [ ] Add a way to select different Arduino boards (settings menu should trigger arduino generator board change)
- [ ] Code generator for lists into arrays.
- [ ] Code generator for lists into arrays
- [ ] A lot of blocks go through the entire block tree, which end ups being terribly inefficient. Maybe create a general pass through in the arduino.js file to check everything that needs to be checked in one pass.
- [ ] SPI spi_transfer also needs returns a byte back
## Arduino web-app
- [ ] Edit toolbox fade out + visibility button fade in with a CSS animated change in height with overflow hidden.
- [ ] Edit toolbox fade out + visibility button fade in with a CSS animated change in height with overflow hidden
- [x] Add examples
- [x] Change js variables naming convention from current 'snake_case' to 'lower camel case' to comply with Google's js coding style.
- [x] Change js variables naming convention from current 'snake_case' to 'lower camel case' to comply with Google's js coding style
# Future features
......
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# An example of embedding CEF browser in wxPython on Windows.
# Tested with wxPython 2.8.12.1 and 3.0.2.0.
#
# Embedding CEF browser in a wxPython window to launch Ardublockly.
#
# Copyright (c) 2015 carlosperate https://github.com/carlosperate/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import wx
import re
import sys
import time
......@@ -13,9 +27,15 @@ import codecs
import inspect
import platform
import traceback
from cefpython3 import cefpython
import wx.lib.agw.flatmenu as FM
from ArdublocklyServer.BlocklyHTTPServer import start_server
try:
import wx
import wx.lib.agw.flatmenu as FM
from cefpython3 import cefpython
except ImportError:
print("You need to have cefpython3, and wx installed!")
sys.exit(1)
__file__ = sys.argv[0]
......@@ -813,7 +833,7 @@ def launch_server(server_root):
else:
root_location = os.path.dirname(os.path.realpath(sys.argv[0]))
thread = threading.Thread(
target=start_server, kwargs={"document_root":root_location})
target=start_server, kwargs={"document_root": root_location})
print("\n======= Starting Server =======")
thread.start()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment