raspbian has SCROTbensimmo wrote:Perhaps screenshot, though no idea if the usual prints teen key work in Raspbian desktop, there is no screenshot utility installed by default like Windows Snipping Tool and then you have to find a way of getting a picture up on here, it doesn't like 'normal size' pictures)
Code: Select all
from sense_hat import SenseHat
Open Python 3 using Menu > Programming > Python 3. This will cause a Python Shell window to appear. Select File > New File, and type in the following code:
What editor are you using ? It's hard to make out your screenshot BUT why does it have the bit about python at the top ?khse wrote:The invalid Syntax is always at the Beginning:
Python 3.4.2 <-- the "4" is highlighted.
I'm not sure where I'm trying to run the command. Well I just click on the Python 3 Icon and start writing my command, when I press enter at the end, the commands starts running for one time. Then I'm saving the file on the desktop. Reopening it, you get one more option in the topbar of the file, I can "Run" the file pressing F5. But it won't work.
Clicking on the Python 3 (IDLE3) entry on the Raspbian desktop menus opens a new instance of the IDLE 3 IDE/Editor. It does NOT open a new file.khse wrote:The text at the top is there when I click on the Python 3(IDLE) icon to open a new file. I can not delete that apparently.
Once opened click on FILE, and then NEW FILE to open a new window, and type in that.khse wrote:The text at the top is there when I click on the Python 3(IDLE) icon to open a new file. I can not delete that apparently.
Change sense_hat to sense_emu and it should work (on a standard Raspian install)KLL wrote:http://kll.engineering-news.org/kllfusi ... creen1.jpg
here i used IDLE3 but NO HAT, so the program can not work.
so that is how the IDLE3 file edit window and the IDLE3 shell window can look.
here i operate via VNC / screen shot on win7 PC / upload server..
yes, but it was not the idea to make that program working, just to show how a file edit window / with his source code / looks likebensimmo wrote:Change sense_hat to sense_emu
Users browsing this forum: No registered users and 30 guests