Questions tagged [codeskulptor]

CodeSkulptor is a browser-based Python interpreter. It implements a subset of Python 2, plus the addition of three graphical libraries, SimpleGui, SimpleMap, and SimplePlot.

CodeSkulptor is a browser-based Python interpreter. It implements a subset of Python 2, plus the addition of three graphical libraries, SimpleGui, SimpleMap, and SimplePlot.

It is mainly used in the online Coursera course An Introduction to Interactive Programming in Python.

54 questions
19
votes
7 answers

How to integrate SimpleGUI with Python 2.7 and 3.0 shell

I am learning Python from Coursera. In this course they use SimpleGUI module on CodeSkulptor. Can anyone tell me how to integrate SimpleGUI with python 2.7 and 3.0 shell?
4
votes
1 answer

Can we create and import modules in codeskulptor?

I am writing a code in codeskulptor, I have a question that, can we create a file(module/package) in codeskulptor and can we import it in another program like hello.py def jj: .... .... print "hello world" In another program import…
user1934044
  • 516
  • 5
  • 18
4
votes
0 answers

Using Matplotlib Output Client-Side in Browser With Skulpt

I am writing a Python application to be run client-side within the browser. The Skulpt project looks great for this, and I am pretty excited to begin working with it. The one issue I can foresee, however, is that I will need graphical output using…
3
votes
4 answers

Trouble importing simplegui

I installed PyDev in Eclipse to run Python programs, but I’m facing trouble importing simplegui. It is showing me this error: import simplegui ImportError: No module named simplegui My installed PyDev version is 2.7.1.
shadhin
  • 41
  • 1
  • 5
2
votes
2 answers

I'm creating Space Invaders but it's not working like it should

For my programming class I'm working on a Space Invaders game... My code isn't perfect but mostly it's working. Mostly... I won't go into a lot of detail (I'll include a link to the Codeskulptor page so you can see for yourself) but the one thing…
Alexander
  • 39
  • 5
1
vote
1 answer

Python CodeSkulptor Pause Drawing from Inside For Loop

I want to build some visualizations for searching algorithms (BFS, A* etc.) within a grid. My solution should show each step of the algorithm using CodeSkulptor simplegui (or the offline version using SimpleGUICS2Pygame.) I've made a version which…
Robin Andrews
  • 3,514
  • 11
  • 43
  • 111
1
vote
0 answers

SimpleGUICS2Pygame Sounds Won't Play

I tried making sound work with SimpleGUICS2Pygame (a pygame port of simplegui from http://www.codeskulptor.org/) but no joy - only silence. I tracked down the source code for the module which has some tests as shown below. Still only silence. For…
Robin Andrews
  • 3,514
  • 11
  • 43
  • 111
1
vote
1 answer

My title is overwriting my image in window (Python)

I was having trouble displaying my image and my Title. I narrowed down my code and found out that the title was somehow overwriting my image. It appeared to be the draw_handler that was doing this. Right now, the code will only display the title. …
visiontech60
  • 105
  • 1
  • 8
1
vote
1 answer

Multiple line text unable to show in view

I'm making a python project and I needed to print the rules on the screen. I'm using the simplegui module and here is what I have. text = """You will be given a number and a number of operations. The number on the top is the answer to the…
Justsoft
  • 162
  • 4
  • 17
1
vote
2 answers

how to use codeskulptor in IDLE python 2.7 without having an error

I followed the steps in this post: https://stackoverflow.com/questions/26194747/codeskulptor-simplegui-module-for-python-2-7 , I was looking to run an example code but i have got this error : Traceback (most recent call last): File…
NadNet
  • 13
  • 1
  • 2
  • 6
1
vote
1 answer

Why does the c_score variable and p_score variable increase unstoppably when it should just increase by one in score?

The below code*, written in Python, compiled in codeskulptor doesn't increase the global variables c_score and p_score by just 1 in the score() function, instead it increases it endlessly. *Ignore any formatting errors that might have crept in, the…
1
vote
2 answers

How to use simplegui module when programming in python in eclipse?

I'm learning to program in Python now in a course via Coursera website. We are using an environment called "CodeSkulptor" and mainly using a module called "SimpleGUI". I was wondering if there's any way to get the module sources and to attach them…
DanielY
  • 1,141
  • 30
  • 58
1
vote
1 answer

Direct link to Google Drive Image not working [in CodeSkulptor]

I have uploaded to google drive and dropbox(public folder) images that is not loading why is that when i access public url of google drive give as error saying (403. That’s an error. Your client does not have permission to get URL…
1
vote
3 answers

SimpleGui inputs into a variable

On simplegui I want there to be an input box called login_gui that puts the data from the input into the variable login_variable, not into a defined function. import simplegui frame = simplegui.create_frame("screen", 500, 500) login_gui =…
L0neGamer
  • 275
  • 3
  • 13
0
votes
0 answers

Pong paddle collision not lining up with paddles - Python

Working on a pong game in CodeSkulptor, and trying to figure out how to make my collisions match with the paddles. The collision happens but inconsistently, and not within the paddle surface: # determine whether paddle and ball collide if…
JoeP
  • 45
  • 8
1
2 3 4