Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
61% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
~20.2K People Reached
Member Avatar for Zebibyte

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, …

Member Avatar for newbieee
0
743
Member Avatar for jayjay85

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.

Member Avatar for marksman123
0
594
Member Avatar for fallopiano

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 …

Member Avatar for 0x69
0
616
Member Avatar for lewashby

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 …

Member Avatar for albo1125
0
283
Member Avatar for fallopiano

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 …

Member Avatar for caperjack
0
228
Member Avatar for archb

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 …

Member Avatar for Tech B
0
197
Member Avatar for Lolalola

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 …

Member Avatar for Lolalola
0
172
Member Avatar for fallopiano

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 …

Member Avatar for Gribouillis
0
551
Member Avatar for hondros

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 …

Member Avatar for hondros
0
108
Member Avatar for sri1230

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! …

Member Avatar for Hawkeye Python
0
104
Member Avatar for fallopiano

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. …

Member Avatar for fallopiano
0
197
Member Avatar for emir_gradacac

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') …

Member Avatar for Lardmeister
0
418
Member Avatar for fallopiano

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 …

Member Avatar for sknake
1
138
Member Avatar for ShadyTyrant

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 …

Member Avatar for Gribouillis
0
353
Member Avatar for Symbolistic

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 …

Member Avatar for fallopiano
0
76
Member Avatar for checker

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 = …

Member Avatar for fallopiano
0
118
Member Avatar for Tech B

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.

Member Avatar for fallopiano
0
508
Member Avatar for SoulMazer

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.

Member Avatar for Tech B
0
229
Member Avatar for jaison2

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 …

Member Avatar for snippsat
0
203
Member Avatar for fallopiano

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 …

Member Avatar for caperjack
0
328
Member Avatar for ffs82defxp

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 …

Member Avatar for fallopiano
0
101
Member Avatar for fallopiano

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 …

Member Avatar for fallopiano
0
210
Member Avatar for Judgment

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.

Member Avatar for snippsat
-2
110
Member Avatar for CurtisEClark

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, …

Member Avatar for CurtisEClark
0
481
Member Avatar for fallopiano

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 …

Member Avatar for Stefano Mtangoo
0
272
Member Avatar for thehivetyrant

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 …

Member Avatar for vegaseat
0
8K
Member Avatar for johnroach1985

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 …

Member Avatar for johnroach1985
0
2K
Member Avatar for AnonSurf

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 …

Member Avatar for AnonSurf
0
147
Member Avatar for fallopiano

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 …

Member Avatar for fallopiano
0
101
Member Avatar for fallopiano

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 …

Member Avatar for fallopiano
0
315