I want to create a very basic 3D modeling tool. The application is supposed to be windowed and will need to respond to mouse click and drag events in the 3D viewport.
I've decided on wxPython for the actual window since I'm fairly familiar with it already. However, I need to produce an OpenGL viewport that can respond to the various m...
Any examples ? thanks
...
I'm trying to use custom container widgets in gtk.Builder definition files. As far as instantiating those widgets, it works great:
#!/usr/bin/env python
import sys
import gtk
class MyDialog(gtk.Dialog):
__gtype_name__ = "MyDialog"
if __name__ == "__main__":
builder = gtk.Builder()
builder.add_from_file("mydialog.glade"...
How to go about to get started learning php. Which one is best to learn php programming or python. I just want to know which one of these is leading.
...
Hello,
Is it possible to have a variable number of fields using django forms?
The specific application is this:
A user can upload as many pictures as they want on the image upload form. Once the pictures are uploaded they are taken to a page where they can give the pictures a name and description. The number of pictures will depend on...
Is there a way of doing the following?
model = "User"
model.objects.all()
...as opposed to User.objects.all().
EDIT: I am trying to make this call based on command-line input. Is it possible to avoid the import statement, e.g.,
model = django.authx.models.User
? Django returns an error, "global name django is not defined."
...
Hi all,
I am trying to port my first Django 1.0.2 application to run on OSX/Leopard with Apache + mod_python 3.3.1 + python 2.6.1 (all running in 64-bit mode) and I am experiencing an occasional error when uploading a file that was not present when testing with the Django development server.
The code for the upload is similar to what ...
I would like to force my python app to the front if a condition occurs. I'm using Kubuntu & QT3.1
I've tried setActiveWindow(), but it only flashes the task bar in KDE.
I think Windows has a function bringwindowtofront() for VB.
Is there something similar for KDE?
...
I've been playing with Python for a while and wrote a little program to make a database to keep track of some info (its really basic, and hand written). I want to add the ability to create a website from the data that I will then pass to my special little place on the internet. What should I use to build up the website? After dabbling wi...
I have code that looks like this:
import xmlrpclib
class Base(object):
def __init__(self, server):
self.conn = xmlrpclib.ServerProxy(server)
def foo(self):
return self.conn.do_something()
class Derived(Base):
def foo(self):
if Base.foo():
return self.conn.do_something_else()
How shoul...
Are there any modules in Python that help us to construct or obtain the musical notes and octaves from a given original song?
Thanks for the help
...
What are good online resources to learn Python, quickly, for some who can code decently in other languages?
edit: It'll help if you could explain why you think that resource is useful.
...
In my Apache webserver I put this:
<Directory /var/www/MYDOMAIN.com/htdocs>
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
Then I have a handler.py file with an index function.
When I go to MYDOMAIN.com/handler.py, I see a web page produced by the index function (just a plain vanilla ...
Anyone here know about Nodebox?
http://nodebox.net/code/index.php/Tutorial
Anyone know of similar apps? Nodebox is just so cool and I wanted to know if there were other similar apps out there. They don't have to be graphics related - I'm talking about software that uses programming languages in a new way.
Thx
...
(code examples are python)
Lets assume we have a list of percentages that add up to 100:
mylist = [2.0, 7.0, 12.0, 35.0, 21.0, 23.0]
Some values of mylist may be changed, others must stay fixed.
Lets assume the first 3 (2.0, 7.0, 12.0) must stay fixed and the last three (35.0, 21.0, 23.0) may be changed.
fix = mylist[:3]
vari =...
Hello together and a happy new year 2009!
I am programming a simulations for single neurons. Therefore I have to handle a lot of Parameters. Now the Idea is that I have two classes, one for a SingleParameter and a Collection of parameters. I use property() to access the parameter value easy and to make the code more readable. This works...
What is the difference between these two apis?
Which one faster, reliable using Python DB API?
Upd:
I see two psql drivers for Django. The first one is psycopg2.
What is the second one? pygresql?
...
I am using the Python, Django framework and PostgreSQL combination. I am using the full text search of PostgreSQL (8.3) and am overriding the default filter function of Manager class in Django. Using the link: http://barryp.org/blog/entries/postgresql-full-text-search-django/ I was able to configure my full text search, as mentioned in t...
I need to store some values in the database, distance, weight etc. In my model, i have field that contains quantity of something and IntegerField whith choices option, that determines what this quantity means(length, time duration etc). Should i create model for units and physical quantity or should i use IntegerField that contains type ...
What would be the best way to manage the databases of hobby projects?
Requirements:
It should be as easy as possible. If it is hard, the project will stall.
It should provide easy way to get testing copy to avoid doing development in production.
It should provide reliable way to upgrade the production database schema to new version.
I...