Member Avatar
This 'sticky' thread is for working examples of Python GUI code. Note that wxPython examples have their own sticky. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the toolkit and can use those …
by vegaseat 1,720 in Software Development ()
Member Avatar
Hi, I am given this assignment that should be run in Jython. The assignment says that the program consists of a Java application with a canvas and a textarea for turtle code. I need to create a Jython application that takes turtle code from the Java application, parses it with …
by siga in Software Development ()
Member Avatar
Just a simple Jython code to test drawing on the canvas.
by vegaseat 1,720 in Software Development ()
Member Avatar
Jython is a version of Python that can use the extensive Java library. Jython uses Python syntax and avoids the rather ugly syntax (at least for Pythonions) of Java. Here we apply it to bring up an image from a file.
by vegaseat 1,720 in Software Development ()
Member Avatar
Hey all I need some help with Jython. In Python I'm given the easy option to read a file with file = open('/dev/input/js0') Then I can put it into a non blocking mode with something similar to import os, fcntl file = os.open('/dev/input/js0', os.O_NONBLOCK) But in Jython I'm not sure …
by woodenduck in Software Development ()
Member Avatar
In an earlier post, Tech-B stated that, other then dialogs, there wasn't 'any "real" GUI support' in Python that uses the Android SDK or SL4A/SAE. Has anyone tried Jython with the Android SDK?
by KenGreen in Software Development ()
Member Avatar
Can I ask for a little help with virtualenv. I am looking at the docs here and here There are a few things I can't quite understand about it. First just to clarify I am on ubuntu and my default python is 2.7.1 I use virtualenv to create 'sandboxed' python …
by flebber 12 in Software Development ()
Member Avatar
I took an intro python class and learned some about jython. Unfortunately, what I have in mind is far too complicated for my level of training. Is it possible to use jython to import pictures from a scanner? If so, what module would I start with/use? The scanner is an …
by Tremillian in Software Development ()
Member Avatar
So, I am working with some code I don't understand. Here is the file: import sys import os def change_ext(directory, old_ext, new_ext): for f in os.listdir(sys.argv[1]): base, ext = os.path.splitext(f) if ext[1:] == sys.argv[2]: os.rename(f, "%s.%s" % (base, sys.argv[3])) if name == 'main': if len(sys.argv) < 4: print "usage: %s …
by WolfShield 32 in Software Development ()
Member Avatar
Hello, I am vegaseat, the goofy moderator from the Python forum of DaniWeb. I wanted to know if anyone in the Java forum has played around with Java based Python, also known as Jython. Jython uses easy to learn Python syntax and can use the Java libraries. To make a …
by vegaseat 1,720 in Software Development ()
Member Avatar
Here is experiment of how VM and Swing UI manage the sort test posted previously, instead of CPython and Tkinter. The timing is not so sweet, but at least no Java required! K:\jython2.5.2>java -jar jython.jar swing_test.py 256000 words generated in 10.93 s Sorted in 1.68 s List prepared in 22.71 …
by pyTony 880 in Software Development ()