15,185 Topics
| |
Hello to all of you. My name is Greg. I am currently running Mac OS X ( my homeschooling computer). Anyways, I'm having trouble downloading Python to my Mac. Every python file I've downloaded and decompressed with StuffIt Expander, just seems to be nothing but files that I don't know … | |
Hello!! I'm really new to python and pygtk and Glade, I'm sorry I'm still on the dark side using Windows 2000 :-( What I'm trying to do is a simple Testing Program Simulator, that means that I will press a button and then I'm supposed to show a cross or … | |
Hi, I need to test soem DCOM APIs using python script. I just wanted to know how to go about it? What all s/w would I need to do this testing? And do I need to install visual studio on my machine to check the dcom APIs? | |
Hi, I would like to configure my wxcombox in a way that when it gets the focus, it automaticly opens his listpart. Any ideas ? tia Rony | |
Hi, I have a file named demo.py.The contents of the file are: [code] class a: name="swapna" def show(self): print a.name s=a() s.show() [/code] When I execute the file it gives me the following error: "<bound method a.show of <__main__.a instance at 0x009D58C8>>" Kindly advice on how to proceed with it. | |
THIS WINDCHILL TABLE PROGRAM IS RUNNING, BUT THE NUMBERS IS STILL NOT LINING UP STRAIGHT..WHY, CAN YOU PLEASE HELP ME..THANKS HERE IS THE PROGRAM BEFORE I RUN IT.. [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ … | |
Hi all, How to create a model less dialog box using python 2.3 tkinter? Thanks in advance, Bhupendra | |
How can i do full screen? How can i get size of monitor? Is that possible? Thanks | |
# sum.py # tpm # A program that accepts an indeterminate (any number) of integers entered by # the user, calculates and their sum, using loop [CODE]from math import * def calc_sum(): n = input("Enter any number: ") sum = 0.0 for i in range(n): x = input("Enter a number … | |
# class.py # tpm # A program to calculate the volume and surface area of a sphere from its # radius given as input. [CODE]from math import * class Sphere: def _init_(self, radius): self.radius = radius def getRadius(self): return self.radius def surfaceArea(self): self.area = 4.0 * pi * self.radius ** … | |
[code]import posix import string uid = `posix.getuid()` passwd = open('/etc/passwd') for line in passwd.readlines(): rec = string.splitfields(line, ':') if rec[2] == uid: print 'hello', rec[0], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code] | |
THE WINDCHILL TABLE IS RUNNING, BUT THE NUMBER IS NOT LINNING UP STRAIGHT. CAN YOU PLEASE HELP ME, THANKS [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ Temperature \n") print ("Speed \n") print (" 1 -20 … | |
At the beginning I found Python was very good at its data structures , concise code, and some strong aspects ! but it's very difficult to solve a program with higher speed than C++ and java ! I'm very confused ! could you tell me why do you choose Python … | |
Hello to all, I am trying to create a script that will go through certain directorys in Windows and pull out the files I stated by extentions. Which will then later copy to a location either on the local machine or an external HD. Any assistence will be greatly appricated. … | |
import urllib f = urllib.urlopen("http://www.mahiti.in") word = "Software" for line in f: if word in line: print line :cheesy: | |
I alredy know hoe to send e-mail by python but is possible to receive e-mail?? thanks for all post | |
I am using script from coed snipet how to print a page, but i dont know way how to say to printer which font and which size of font set, which colour of background and foreground.Please help Thanks | |
[code] # windchill.py # tpm # A program that prints a nicely formatted table of windchill values. from math import * def windchill(t, v): c = 35.74 + (0.6215 * t) - (35.75 * v ** .16) + (.4275 * t * v ** .16) return c def main(): print … | |
def windchill(temp, vel): wc = 35.74 + .6215*temp - (35.75*vel**.16 + .4275*temp*vel**.16) return wc def main(): print (" __ __ __Temp /n") print (" Speed /n") print ("-20 70 10 0 10 20 30 40 50 60 ") for x in range (5,55,5): print x for y in range (-20,70,10): … | |
I WRITTEN THIS PROGRAMM IN 2 WAYS(RE-WROTE IT OVER AND OVER), AND ITS STILL NOT RUNNING CORRECTLY. IS THERE OTHER WAYS THAT IS PROGRAM CAN BE WRITTEN. I AM SO FRUSTRATED, PLEASE HELP ME. THANK YOU. 1st way: # windchill.py # tpm # A program that prints a nicely formatted … | |
I've been working on an irc bot in python using the IRCLib module, but when it came to making it give users operatership I have no idea how... everything I've tried has failed. if any of you has experiance with the IRCLib module I'd greatly appreciate the help. | |
I am fairly familiar with C, but new to Python. Does Python have something like the handy C conditional expression? For example: [code]// C conditional expression x = a ? b : c; // if a is true then x = b else x = c // here used to … | |
[CODE]# tpm.py # Take two inputs, age and years of citizenship, and returns eligibility for # senator and representative. from graphics import * def main(): win = GraphWin('Eligibility' , 400,400) win.setCoords(0.0,0.0, 4.0, 4.0) Text(Point(1, 3.0), 'Age').draw(win) Text(Point(1, 2.0), 'Years Citizen').draw(win) agebox = Entry(Point(2, 3.0), 10) agebox.draw(win) citizenshipbox = Entry(Point(2, 2.0), … | |
Ok i am having a little trouble trying to figure out how to pull the x-cordinate from p1 and p2 so that i can use it later in the code to build a door. # This is a program to build a house in five clicks from graphics import * … | |
# tpm.py # A program that accepts the total amount of purchase, calculates the # appropriate discount, and displays the discount and the purchase after # discount. from math import * def main(): cost = get_cost() discount = get_discount() % = calc_percent(discount) final cost = get_final_cost cost_percent = cost_discount(cost, discount) … | |
Hi, I've got a small program, that would be really useful if it could stay on top of other windows programs, i don't think there is a method for that in Tkinter, if anyone has any experience or ideas on this topic, please let me know thanks | |
I've heard the word "Literal" many times in Python But I don't understand it ! what does this mean ? Thanks ! :rolleyes: | |
I need to know how many times my function has been accessed in my program. Any suggestions other than global variable? | |
Hi all, I'm writing a simple MIDI player (which I might eventually turn into a editor, if I feel ambitious). To that end, I've been futzing around with the pygame.mixer and pygame.mixer.music modules. I can get MIDI files to play, but I would also like to be able to grab … | |
Did I do this right and can you please help me. This program uses a GUI to input a user's first and last name, and construct and display a UserID. Although the program 'runs', there are several problems with it. Fix each of these problems in turn: 1) The text … |
The End.