15,181 Topics
| |
how can i change this string: "f(x)= x + 2-3\nbox = f(2) + 2\nbox = f(f(2)) + 2\nfunc = 3 + 3 * 4 to: "box = 1 + 2\nbox = 0 + 2\nfunc = 3 + 3 * 4\n" or tell me the algorithm to make this happen, i … | |
Hi all! This is something I've been trying to figure out for a long time now. I have a pixbuf that I'd like to change the hue, saturation and/or brightness with using sliders, however I've not been able to find anything that points me in the right direction. If anyone … | |
This snippet defines a class OptCmd which adds line and options parsing capabilities to the python standard lib's cmd.Cmd class. It allows you to quickly write an extensible command line interpreter. To use this module, you will need [url=http://www.daniweb.com/code/snippet234768.html]this other code snippet[/url], saved as a module named 'argv.py'. Enjoy the … | |
Some time ago, I was writing a small command line interpreter, with the help of [url=http://docs.python.org/library/cmd.html#module-cmd]the standard module cmd[/url] which offers minimal support for such tasks, and I had the problem that this module doesn't have a function to parse a command line to produce a list argv which can … | |
Hello all, I am completely new to python, but unfortunately a professor I am working for needs some code done in it. Basically, I need to look through a file for the word "DATA" and then perform some manipulations (simple algebra) do a long list of numbers (3900 to be … | |
Well, I just wrote the first of my test / learn scripts with TKinter, and they work well (well they do not really do something but this without any errors) So Id thought you also have to learn to make biniarys and have installed py2exe for this job. Well at … | |
Post the 2nd try. And here my official statement: I do really hate hate hate hate board where you have 1. to register, 2. to log on, and 3. which have a session timeout. I puts lots and lots of work in a post only to get "ha ha, you … | |
See I've made a short little login that works with a dictionary, but I don't know how to add something to the dictionary while the program is running, so if you know how to fix this can you please help. Much apperciated.[code]database = {'name1': '1234', 'name2': '5678', 'name3': '9012'} name … | |
Hi folks I feel like this is a simple task, but being so new to python and not having the time to fully come to grips with it I am utterly overwhelmed... I simply want to replace whatever text is at a particular position in a particular line with the … | |
I have problem loading fonts in PIL. it seem that _imagingft is missing. how can I install it? thanks | |
[B]Hi. I need some help. I need my python program to get information from the .txt file.(text file). I have managed to get this:[/B] [CODE]import string months = [] temperatures = [] fm = open("weather.txt","r") count = int(fm.readline()) # Number of the moths are read from the .txt file for … | |
I am working on a small program that uses classes to generate a weekly menu of daily food logs. I am still new to python and would like some help with what I view to be the next step. I want to be able to load the program and have … | |
Basically I want to do something like this; give a URL. And find the part of the webpage that has the main content. e.g. a main page of a blog should return the div that contains the posts and nothing more. a post article of a blog should return the … | |
Hey i been workn on this code for a few days now and im stuck!! i gotta make sum nested circles ... but the code i have here draws a bunch of circles but they are connected :'( and i tryed everythin T.up, T.forward, T.goto ... all of that .... … | |
Hello guys I want to make little application to convert png files to xpm I wonder what is the easiest approach! Load the image in DC and save as xpm? or what? Thanks! | |
Everything works great. But sometimes I get an Error message saying something about ip/port bindings. I don't have the traceback but this could cause problems down the road. Any suggestions? [code] #Backdoor Server #Version 0.3.0 #Every now and the I get an Error dealing with the ip/port bindings # seems … | |
I am having a service which run using a batch file in command prompt, I want to read the whole information running in the console and want to write it to an another file but I am able to write it only when the service is closed completely. So I … | |
I have a code that plays fast _it's order is log(n)_.I have to meter it's play's elapsed time.I used from time.time() and time.clock() but they returned 0.I need a timer witch meter nano second. How can I do it? | |
I have a project on creating a program that asks for the propertys actual value. Then it showes the assessed value (which is 60% of the actual value). Then it shows the property tax (which is $.64 for every $100 of assessed value). I have gotten a TypeError: unsupported operand … | |
Hi, I am very new to python. Please , Can some one tell me how to post the data to a form. I need to test the user login page by entering username , password values. There is a also login button next to these fields. | |
Can anybody suggest a solution? I am not able to display any plots, graphs or pictures using Python. e.g. when using the matplotlib.pyplot.imshow, I get the following answer: <matplotlib.image.AxesImage object at 0x01C77850> Nothing else is displayed nor any picture pops up. It seems to me the picture is created as … | |
Hi, I am new user of python and now i am struck with a problem. Please help me in solving this. I am trying to create a logfile for every action by using a standard template available. My code is able to create & rename a log file by using … | |
... I find it interesting that these are projects for the[I] beginners[/I]. Of course, these projects I've found often result in constant research and use of extremely confusing modules. If a module is confusing and is required for a project? It immediately bumps up to intermediate difficulty in my book. … | |
hey guys i have a very basic program but unfortunatly it does not recognise how many bombs are near it it just displays ok if there is no bomb. and if there is a bomb a message pops up saying bomb would you like to retry, If i press no … | |
Hi, I got two question. :) First there is this annoying problem with running my script from IDLE that for the character é (the ' and e) I got after using ord() the value 233. When I run the script from cmd.exe I get the value 130. Why the difference … | |
How can I use from Sample--A convert to Sample--B or Sample--C? If there have more radom sample in one file how can i filter it? I mean, I have to open one file and the file included more ROWS in Sample--A CHIP FRAME_4X, $ (1, 4HTFRR2-0A-00, AD=0.005, SF=0.5) ROWS 38500/76200 … | |
Hello all, I'm having an issue with getting the ip address of a client accessing an xmlrpcserver, some of the time the code will work and then when I go to transfer the classes/methods (copy and paste) into my other file neither work and both have the same error: Server: … | |
Okay, Im using Python 2.6, and the latest version of pygame. In my game, I have circles moving away from you, you have to catch them, and if you catch them, they disappear. The amount of circles can vary, and that is the issue I am having. As of now, … | |
hi everyone... we have to run any python file e.g. show.py at startup..i.e. when OS starts it runs automatically. we are proceeding this way, writing a startup script named forfyp2 ,pasting it in init.d , making it exe using chmod , creating startup links using update-rc.d forfyp2 defaults. After this … | |
Hi, Could someone kindly tell me how to stop maximizing a dialog box with cursor? Like, when we create a toplevel window, it is possible to maximize that window with mouse, holding its border. I want to fix the size of the window? How? Thanks in advance Regards |
The End.