15,190 Topics
![]() | |
Anyone have a Python logic map or Python logic flow chart? An example can be seen on the right under History: [URL="http://en.wikipedia.org/wiki/Usenet#History"]http://en.wikipedia.org/wiki/Usenet#History [/URL] This would be very helpful for all users. | |
I'm trying to figure this out, but every google I do just brings up garbage. What I'm trying to do is split a string at an * I want the string to be in 2 parts basically. So.. Say the string is 2478*72-432*823-74 What I want to do is split … | |
Hi,everyone. I've been trying to extend Python's file type but I'm new to Python so I don't know if I'm going about it the right way. I hope someone can help me out with this or point me in the right direction. The problem isn't really subclassing file, but a … | |
I have never done any programming in my life but I have decided to go into engineering and in doing so we have to take this intro to programming course and I am pretty clueless. I am starting to get the hang of how python works but to put my … | |
Hi, my professor's site is down so I can't access his notes. but basically I need to make a 4 bar mechanism on canvas like this. and then have the top most point draw stuff as the bar rotates etc.. how can i do that with Tkinter? [URL=http://img521.imageshack.us/i/screenshotmn.png/][IMG]http://img521.imageshack.us/img521/8250/screenshotmn.png[/IMG][/URL] | |
I have installed the Python Imaging Library. But i am not able to use it. When I run the script in windows it says "ImportError: No module named ImageGrab" I also created the PATH VARIABLE called PYTHONPATH and gave the location of the installed modules. Please help. | |
Hello... I have problem with regex, I want to get the tables from another site... the regex is re.compile(r'<table.*?>(.*?)</table>') but when I get the tables I don't know how to return the value into the tables. [CODE=Python] #html = the page tbl = re.compile(r'<table.*?>(.*?)</table>') return tbl.sub('', html) #return html without … | |
hi i use python with twill/mechanize to post some texts to my web sites. strangely it works sometimes and sometimes not. i use twill browser to go to the page with the form, then post the texts and 'press' post button. the fields and button are correct. something like: [CODE]>>> … | |
Greetings everyone!! First of all, I'm a python newbie; my apology in advance if I'm being silly with my question but I really hope some one can help me on this. I got myself a project (just to start) to read iTunes library .xml file - iTunes Music Library.xml - … | |
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 … |
The End.