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): ...@@ -30,8 +30,8 @@ class ServerCompilerSettingsTestCase(unittest.TestCase):
ServerCompilerSettings() ServerCompilerSettings()
instance_1 = ServerCompilerSettings() instance_1 = ServerCompilerSettings()
instance_1._drop() instance_1._drop()
self.assertEqual(instance_1._ServerCompilerSettings__singleton_instance, self.assertIsNone(
None) instance_1._ServerCompilerSettings__singleton_instance)
# #
# Testing the compiler_dir getter and setter # Testing the compiler_dir getter and setter
......
...@@ -36,8 +36,10 @@ There was an error manipulating the sketch data!! ...@@ -36,8 +36,10 @@ There was an error manipulating the sketch data!!
- [ ] math_number getType to use regular expressions more efficiently - [ ] math_number getType to use regular expressions more efficiently
- [ ] math_on_list to add static type if lists get implemented - [ ] math_on_list to add static type if lists get implemented
- [ ] controls_for getVarType function - [ ] 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 - [ ] 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 ## Arduino related code
...@@ -46,15 +48,15 @@ There was an error manipulating the sketch data!! ...@@ -46,15 +48,15 @@ There was an error manipulating the sketch data!!
## Arduino blocks ## Arduino blocks
- [ ] Add a way to select different Arduino boards (settings menu should trigger arduino generator board change) - [ ] 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. - [ ] 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 - [ ] SPI spi_transfer also needs returns a byte back
## Arduino web-app ## 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] 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 # Future features
......
#!/usr/bin/env python2 #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- 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 os
import wx
import re import re
import sys import sys
import time import time
...@@ -13,9 +27,15 @@ import codecs ...@@ -13,9 +27,15 @@ import codecs
import inspect import inspect
import platform import platform
import traceback import traceback
from cefpython3 import cefpython
import wx.lib.agw.flatmenu as FM
from ArdublocklyServer.BlocklyHTTPServer import start_server 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] __file__ = sys.argv[0]
...@@ -813,7 +833,7 @@ def launch_server(server_root): ...@@ -813,7 +833,7 @@ def launch_server(server_root):
else: else:
root_location = os.path.dirname(os.path.realpath(sys.argv[0])) root_location = os.path.dirname(os.path.realpath(sys.argv[0]))
thread = threading.Thread( thread = threading.Thread(
target=start_server, kwargs={"document_root":root_location}) target=start_server, kwargs={"document_root": root_location})
print("\n======= Starting Server =======") print("\n======= Starting Server =======")
thread.start() 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