Re:
I tried out one of the "Projects for the Beginner" ideas: the [URL="http://www.daniweb.com/forums/post223885-54.html"]change calculator[/URL]. Basically, you tell it how much the purchased item was, and how much the customer paid. Then it tells you the change due, and the most efficient combination of bills and coins to pay it. However, … |
|
Re:
i need to use crossfade function to to this. i need some help please, i am new at this. any help would be great. i have done a program than makes a double image but this need to happen slowly. |
|
Hey everyone, as the title suggests I'm trying to find a function or some code that'll execute a string of code in Lua. If anyone is familiar with Python, It would be the eval function. ex: [CODE=python] eval("y=1") print(y) >>> 1[/CODE] Essentially, I'd like to do that same thing in … |
|
Re:
I am reading the book "Python Programming 2nd Ed. for the absolute beginner" and I am having some trouble with a very simple program. I was instructed to download and install pygame and the livewires package as I have done. This program is meant to display a grahical window, that's … |
|
Hey everyone. Just recently I have been messing around with some files on my pc, trying to find a specific driver updater-program that was giving me some trouble. I went into add or remove programs, selected "NVIDIA Drivers" (I'm using a basic Nvidia graphics card), and removed it, thinking that … |
|
Re:
I want to give command line arguments to a file and then executive that python file from within my master python file. How should I go about this? I don't really care about the standard output. The file that I want to executive from with my file just outputs all … |
|
Re:
Hi, i creates this program: [CODE=python] import wmi c = wmi.WMI() for i in c.Win32_Processor (): cputype = i.Name print cputype for i in c.Win32_ComputerSystem(): mem = int(i.TotalPhysicalMemory) print mem/1000000, "mb" [/CODE] I make exe file with py2exe. When i run program, i see this error: [CODE] D:\py\dist>cpu.exe Traceback (most … |
|
Here I have a simple range function that can use floats as steps or increments. In a time test (using Psyco 1.6, python 2.5, and a basic PC), the normal frange function was able to go up to 1,000,000 from 0, by .3 , and finish that in about 0.5929 … |
|
Re:
Hello everyone, my latest project is this: 1) Ask user to input a function 2) Plot said function Well, I figured out how to strip the function into two parts, input a number, and evaluate the function. That all works fine outside of a defined function I created. The trouble … |
|
Re:
Hello guys - Need help with a windows batch script that would kill processes by the memory usage but leave the last one. For example if i have 10 java.exe processes running i want to kill the top 9 by memory usage and leave the last one alone. Help appreciated! … |
|
Hi all. Just today I had been on the computer for some hours. I turned it off, and then on again, and got an error saying that the NTLDR is missing. I did my research and apparently I need to restore my XP Home Edition with my Windows XP CD. … |
|
Re:
Hi, I would like to ask is it possible for pygame to respond on a key press immediately? I am trying to make a drumming simulation and the response comes after 1-2 seconds. The code is: [CODE]import pygame, sys from pygame import * pygame.mixer.init() pygame.init() #Loading sounds... snare = pygame.mixer.Sound('Snare.wav') … |
|
Hi everyone. I'm currently working on a project with c#, and had some questions about classes. I'm a python programmer, so bear with me ;) How would I make a class that has pre defined arguments? I.e. even if the user doesn't pass that arguement, the default value of it … |
|
Re:
Hello fellow python programmers. I had an idea the other night when watching a video on the creation of the Tasque application. Developers at novel are given a week called "Hack week" were they have no management and are allowed to code anything they like. Well two of the developers … |
|
Re:
Okay I kinda suck at math and I need to get into learning it more for game development. Are there any good books that can teach me 2D Game Math and Physics? I was able to make a number of games, but I still struggled with the math. So I … |
|
Re:
This is what I intended to do [CODE] class person: "class to represent a person" def _init_(self): self.name = "" self.age = 0.0 self.sqr_age = 0 class ageName: def listAgeName(x,y): # x is name # y is age x = 0 y = 0 listAgeName = [('John', 18)] p = … |
|
Re:
I want to read two points in a picture. Most pixel values will be (0,0,0). I don't know how to take the flatted data and separate it into x,y coordinates. I use the Image library and VideoCaputre. |
|
Re:
Okay, so I am writing a media player and I would like to be able to control the entire thing without the use of a GUI. So...are there any libraries or anything that would allow me to collect keystrokes on any OS (not just Windows)? Thanks in advance. |
|
Re:
I need help with the function but i have no clue how to?.. the function should generate a random number between 1 and 100 and then allow the user to guess the number. After each guess it should display if the guess is too high or low and if they … |
|
Hi everyone. So I have your average Windows XP emachines PC. Just a few days ago, I booted and installed Ubuntu 9.10 32-bit on my pc, to make it dual booted. I just wanted to see what ubuntu was like. Pretty nifty, nice graphics, etc. So I go to uninstall … |
|
Re:
how do I: -change the height and width of the console (cmd.exe) -how do i set the console title -how do i change the console color(s) -how do i open another console program in the same console and go back and forth with this (for example a batch file) Thanks … |
|
hi everyone. Say I have my project directorys set up like so: /glider /libs classes.py /graphics /rooms room images go here I'm trying to access a image from graphics/rooms, but from classes.py. I'm using pygame, and I know to go back a folder in a dir; you use: [CODE=python]# go … |
|
Re:
I require some help on how to go about writing a function that removes an item from a list along with how to return a list with an item removed. Any help would be gladly appreciated. |
|
Re:
I am trying to make pygame draw a shape from a list of shapes imported with fileIO but i get a pygame import error please help [CODE]import random import pygame w = 640 h = 480 x = open("shapes.txt") z = x.readlines()[n] n = random.randrange(6) screen = pygame.display.set_mode((w, h)) pygame.draw.z(screen, … |
|
hi everyone. Just out of curiosity more than anything; does anyone know of a library that can grab microphone input (on windows)? I'm looking into how to write a kind of VoIP (voice ip) program. I know how to use sockets for sending/receiving data, but I just need the microphone … |
|
Re:
Greetings Pythoneers. I've got this problem and the problem is thus: i have drawn a shape using [B]pygame.draw.circle[/B] i am finding it hard to make it move. i tried [icode]self.move_to(self.x-5,self.y)[/icode] and also [icode]self.forward(random.randint(0,10))[/icode] (Where forward is defined as a function as [icode]self.x,self.y + 10[/icode])<== I dont think i defined the … |
|
Re:
Hi there, Trying to write a small script in python. What it will basically do is this; 1- A SSH user initiates the python script (from SSH remotely) 2- The script gets the connected users IP (the user is connected through SSH) 3- The connected IP is sent back to … |
|
Re:
Having trouble getting code to allow the cars to go off screen then come back on the opposite side of the screen! for top to bottom and side to side! -The code i was trying was [CODE]if self.position > rect.top self.position == rect.bottom[/CODE] not sure if this is gonna work … |
|
hi everyone. to put it plainly, I was writing some python code that used the itunes scripting interface to control itunes. so I got all of my functions down, and now I wanted to have these actions occur on a specific mouse press. thanks to Tech B, I used the … |
|
hi everyone. just recently I've been messing around with controlling itunes with python (you should check it out on google; some pretty fun stuff to mess with :D). I've already got all of my functions down, but my questions is that how would I go about grabbing keyboard/mouse input (mouse … |
0 Reputation Points
0 Endorsements
Ranked #2K
~20.2K People Reached
Favorite Forums
Favorite Tags