15,181 Topics
| |
Hi all, I have used a status bar on my frame developed in BOA Constructor. I want to split my status bar into two parts in proportion of .75 and .25 i.e., First part should be 75% and 2nd part should be 25% of the total. And then at various … | |
Hi, I am creating a game the asks the user if they want to play again at the end. If the user answers yes, I want python to execute the program again starting from the beginning. I have tried searching, but could not find anything. Is there anything in Python … | |
I have a project for which I need to use turtle. I'm very new to python, and our teacher didn't really explain how to use turtle. What's the basic format I need to use to draw a polygon? I have to define a function, polygon(), and run it with two … | |
When I am trying to install Python on my computer I get the error "administrative rights are required". It is only one account on my computer so I do not understand the message. | |
Hello, I want to fetch a web page and parse links in that. I am using the foll. code [code=python] file =urllib.urlopen("file:///home/suresh/html_parser/Category:Sports.html") content = file.read() # Process the page. [/code] But since the page contains UTF-8 content, its not able to parse it properly. But, if I save the page … | |
Hi Excuse me but i came again Can someone learn me how to work with py2exe? thanks | |
I have been given a project in my Python class that reads in a file, and in the file, 32 attributes are given to determine if a lump is either a benign or a malignant tumor. In my trainClassifier function, I have to find each attributes total for both malin. … | |
So I am getting into the swing of python in my class, and am currently trying to take a program from an example, and making it much more condensed. The issue I am having, is there are many classes for a tkinter guessing game. [ICODE]def question5(): if entry5.get() in ["Samus", … | |
Hey Daniweb Python forumers, I'm guessing that this is a Vista thing, but when I run my wxPython programs in Vista by double-clicking the file, I get errors from the computer saying that "python.exe has stopped working". I also use the IDLE IDE, so when I run the program from … | |
What's wrong with this code in Boa: [def OnMenuHelpAboutMenu(self, event) works fine if I use it to open file etc.., but won't work for Dialog2] Thanks! [code=python] #Boa:Frame:Frame2 import wx #import Dialog2 def create(parent): return Frame2(parent) . class Frame2(wx.Frame): . def OnMenuHelpAboutMenu(self, event): # if hasattr(sys, 'debugger_control'): # sys.debugger_control.set_traceable() dlg … | |
Hi guys I am back sorry for too late just due to business in class I was unable to visit this site. But for long time I was planning to ask this question but was too busy. I am working on graphic creation in python and I created a basic … | |
write a program that graphically plots a regression line, that is, the line with the best fit through a collection of points.First ask the user to specify the data points by clicking on them in a graphics window. To find the end of input place a small rectangle labeled done … | |
| hi again i have been learning about algorithm solving and designing from the website [URL="http://www.ece.uci.edu/~chou/py02/python.html"]here[/URL] i sort of understood the first code but before i went on any further i wanted to understand it the code is [ICODE]def InsertionSort(A): for j in range(1, len(A)): key = A[j] i = j … |
I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be … | |
Hi, I am trying to get Python to pick random letters from a given list. However I don't want any repetitions, I just can't seem to figure out how to skip on letters already chose. Any help would be greatly appreciated. Here is what I have so far [code] let … | |
hi, is there any buitin function like ismethod, to check whether the method exists in the class. for example, Class sample: def fun(): def meth() object = sample(). passing this object(class instance) and fun(function name of class) as inputs i need to find out, whether this function is a member … | |
Could someone help me with this. How do i make a recursive program that returns sum of 1**3 + 2**3 + ... + n**3? | |
looking for a Python/Django Developer in Jersey City NJ. Beloqw is the job description Job Summary: This is a programming position in the technical department of Advance Internet, working on application development, application integration, automated testing and deployment of applications, publishing structure and unit testing in various development environments. Job … | |
Hi I am new to python programming and I am trying to embed some python calls into my C++ program. I made a simple module called 'test.py' which has the following lines : [code] //---------test.py------------------ message = 'The meaning of life...' def transform (input): input = input.replace ('life', 'Python..'); return … | |
Hello all, Beginning my preparation for python 3.0, I just installed python 2.6 and the adapted wxpython. The problem is I can not run the IDLE neither the Module doc of 2.6. I can run the python command line, and that works. But I want to use the IDLE. After … | |
so i have to write regression line program which is hard enough seeing as i just started so i need help, 1st thing is how do i write a loop for mouse clicks of any number, then write the average of whatever the amount of mouseclicks, thanks! | |
I'd really like to be able to ask my program "where is the mouse pointer?" at any given time. Ideally I'll want people to click and hold a button, which will cause a stream of events to occur, and then (at varying points) the program should find out where their … | |
I need to capture sound that is being sent to my speakers or at the very least capture sound that is coming in through a microphone or something using a module in python. I also need to be able get data such as amplitude and or frequency from this easily. … | |
hi all, assuming a path of for example "C:\Python24\development\radar\nra.py" where 'nra.py' is the executable file, could someone please show me the exact syntax for a call to os.execv() in order to run the file 'nra.py'. (nra.py requires no arguments when called. ) Thanks in advance! | |
Hi all, I have a frame and on click of a button, a dialog box is popped up. I want the dialog box to pop up always at the centre of the frame irrespective of where the frame is located on the screen. Presently this is not happeneing. Help needed! … | |
Hi Please let me know the code how to read an excel file and draw bar charts for each sheet using python script | |
Hi, I have a homework assignment to write a function to compute the nth fibonacci number where n is the value input by the user. For example, if n=6, then the result is 8. I saw a problem like this in one of the forums but i would like some … | |
Evening all, Been working through a pygame tutorial i stumbled across the other day and typed it out (no copying an pasting as i needed to learn about it :D), and in the last clas i typed out, there is an error about RenderUpdates not accepting indexing.... The tutorial is … | |
Hi I am new to python . I need source code to draw scatter plot using Python my Input_1 is something like below: ------------------------------------------- ID X Y Z 120321 172.15 -285.03 -870.09 120323 244.31 -257.18 -870.19 120324 274.65 -277.03 -870.10 120327 226.51 -263.98 -870.09 120328 268.55 -271.05 -870.10 my Input_2 … |
The End.