614 Posted Topics

Member Avatar for lewashby

If you want a book that explains it all really nicely, and is free then have a look at Dive into Python: FOR PYTHON 2.* [url]http://diveintopython.org/toc/index.html[/url] FOR PYTHON 3.* [url]http://diveintopython3.org/[/url] It is the best book i have read on python, and if you really like them you can buy hard …

Member Avatar for lllllIllIlllI
0
121
Member Avatar for VernonDozier

Yeah i must say i agree with Vernon. I think it would be great if we were able to change the amount of rep we gave. To make it easy, you could have a default value that automatically went on to save time if needed. But if you wanted you …

Member Avatar for jbennet
1
646
Member Avatar for sravan953

[QUOTE=winmic;994454] BTW, have you thought about how your going to get the username and password out of the TextCtrl?[/QUOTE] It shouldn't be to hard, have a look at the API for the wx.TextCTRL [url]http://www.wxpython.org/docs/api/wx.TextCtrl-class.html[/url] One of the functon is GetValue() that returns a string of the value in the textctrl, …

Member Avatar for vegaseat
-1
3K
Member Avatar for Janiceps

[QUOTE=Janiceps;1013841]WOW,,, you are awsome..[/QUOTE] *shakes head* stop. think. No he is not hacking in.. Its sarcasm

Member Avatar for happygeek
-3
437
Member Avatar for SoulMazer

have a look at [URL="http://www.crummy.com/software/BeautifulSoup/"]Beautiful Soup[/URL]: I have heard that it is an excellent tool for scraping webpages. If that doesn't work then you can always try using string methods... [code] text = "<tr colData0='Friday'>" #Split into a list with 3 items. text = text.split("'") print text[1] [/code] Actually, the …

Member Avatar for SoulMazer
1
165
Member Avatar for skylar

First off, you have fallen for a trick almost everyone does when they start to learn programming. We find it in this line: [code=python] if word and word2 in input1: [/code] That looks okay right? well unfortunately its not doing what you think. What the program does is it looks. …

Member Avatar for lllllIllIlllI
0
101
Member Avatar for Dani

Well i do have one idea, that is we need to educate people as to what it is. I know that a lot of people dont come to the community feedback place. I didn't even know it existed for a while. So is there any way of making an all …

Member Avatar for happygeek
4
535
Member Avatar for Frenzic

There are a great many prime number generators in the code snippet sections :) [url]http://www.daniweb.com/code/forum114.html[/url] Otherwise, i would look at techniques to find primes. Then come back with some code if you have any issues. Here is a great idea [url]http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes[/url]

Member Avatar for pysup
-1
98
Member Avatar for cwarn23
Member Avatar for MktgRob

[QUOTE=cscgal;1001125]Just like any new fad ... I came, I saw, it entertained me for a little while, I got bored, I left.[/QUOTE] Correct me if im wrong but arent you using it at the moment? There is a whole forum devoted to them..

Member Avatar for MktgRob
0
158
Member Avatar for GradStudent

One of the things i could recommend is to read a programming book. This is great because it will cover mostly everything of the basics. That means that you can brush over anything that you may have missed while teaching yourself. :)

Member Avatar for lllllIllIlllI
-1
81
Member Avatar for lllllIllIlllI

Okay, first off. I have noticed that if i 'up' an answer that was at -1 it suddenly goes to 1. Does that mean my up vote is worth 2? Or does it just skip 0? As well, is this separate from rep? or will it add onto your rep? …

Member Avatar for cwarn23
-1
98
Member Avatar for Ancient Dragon

[QUOTE=happygeek;1003236]Don't forget netbooks, increasingly popular with the tech savvy user :)[/QUOTE] Ah happygeek, i knew you wouldn't forget me :)

Member Avatar for jbennet
0
150
Member Avatar for aegis042404

Okay, sounds fun. 1. What i would do is not change where the buttons are, but what colour they are. This means that in your code you can have a sizer easily but the buttons can still change colour meaning blue will not always be down the bottom left of …

Member Avatar for lllllIllIlllI
-1
232
Member Avatar for mahgobb
Member Avatar for Lardmeister
1
459
Member Avatar for oasuspender

Check what python version you have, i think you may have python 3.1 which means that you would not have such thing as a raw_input statement. So instead of[ICODE] raw_input[/ICODE], just replace it with [ICODE]input[/ICODE]. That should sort things out. Also remember for posting in the future, it is a …

Member Avatar for vegaseat
-1
98
Member Avatar for lllllIllIlllI

I was just wondering, on every software development forum we constantly see the largest, most bold tag being the language you are in, in the python forum there is a massive python, same for C++ I was just wondering if perhaps poasting a tag of Python in the python forum …

Member Avatar for lllllIllIlllI
0
152
Member Avatar for s.praneeth

[url]http://www.daniweb.com/forums/announcement114-2.html[/url] Read and understand

Member Avatar for lllllIllIlllI
0
204
Member Avatar for Nick Evan

Ooh fancy, i like it a lot. Its really going to make it helpful for the newbies. I can remember my first posts trying to work out code tags (i did get it right first post so didnt annoy anyone at least) but as it was my first time at …

Member Avatar for Dani
0
208
Member Avatar for serkan sendur
Member Avatar for lllllIllIlllI

This code shows an example of using recursion to simply solve a problem. Note though, it can take a long time to do larger numbers such as the 50th fibonacci numbers this way. Hope this helps! :)

Member Avatar for sneekula
0
211
Member Avatar for lifeworks

[QUOTE]Should you decide to have fun with Python, be aware that the language has been modernized starting with version 3. I would recommend to start with the present version Python 3.1.1[/QUOTE] Yeah as he said, wxPython has not been made for python 3. The versions that have wxPython support are: …

Member Avatar for sravan953
0
168
Member Avatar for huskeraider

So basically do you always want the last 4 arguments printed out? Because if that is the case i wouldn't use a while loop i would go something like this: [code] import sys #-4 means start from the back and count back 4 #and then the rest of the arguments …

Member Avatar for lllllIllIlllI
0
5K
Member Avatar for ddanbe

I havent :S ... stupid slow Australian broadband. But i must say i am quite pleased to see the return of posts/day in the profile section. As well as the profile redesign is quite nice. :)

Member Avatar for DdoubleD
0
365
Member Avatar for sab786

Yeah i definitely agree. Matlibplot is great. Here is a simple tutorial for you to start out :) [url]http://matplotlib.sourceforge.net/users/pyplot_tutorial.html[/url] Oh and this is where you download it from [url]http://matplotlib.sourceforge.net/[/url]

Member Avatar for sab786
0
93
Member Avatar for lllllIllIlllI

Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return.

Member Avatar for sravan953
0
156
Member Avatar for tomtetlaw
Member Avatar for kaninelupus
0
607
Member Avatar for kaninelupus

Yeah well i must say, reading this thread caused me to restart my sponsorship... For 6 months this time. :P

Member Avatar for lllllIllIlllI
-2
215
Member Avatar for Salem

Yeah i was the same as kaninelupus until 2 hours ago when i got a flood of emails coming through.. :) P.S. Woot! 700 posts!

Member Avatar for MosaicFuneral
1
984
Member Avatar for lllllIllIlllI

I was just looking at my user page and i noticed in the section that shows who has looked at your page it had: cscgal+ shadwickman+ and so on I was wondering what the plus sign means.

Member Avatar for lllllIllIlllI
0
92
Member Avatar for AutoPython

Cool, i always try and do these in one line with list comprehensions, i know its not in the 'pythonic' style but oh well :P [code] import random, string print(''.join([random.choice(string.ascii_letters+"123456789") for f in range(8)])) [/code] Imports dont count! :P That is a great way to demonstrate the power of python, …

Member Avatar for AutoPython
0
248
Member Avatar for lllllIllIlllI

Hello, Just quickly i was wondering if there was any way to remove a forum from the "My Favorite Forum" section. I have Software Development Job Offers in there just because on time in the python forum i posted on a thread saying it should get moved, then it did …

Member Avatar for lllllIllIlllI
0
111
Member Avatar for awa

No. Because its hard to read code (especially python) without code tags [code] import re infileName1 = raw_input("Enter filename ") infile1 = open(infileName1, 'r') data1 = infile1.readlines() outfile = open("test.txt", 'w') for line in data1: parameters = line if re.search("KEYWORD",line): count = 1 for i in range(count): outfile_temp.write(parameters) [/code] So …

Member Avatar for awa
0
150
Member Avatar for lllllIllIlllI

Hi guys, I have been programming in python for just a bit over 2 years now. Being quite apt at it i was wondering, what can you do to really extend yourself in python? We have a lovely thread in the Projects for Beginners, but in some ways i have …

Member Avatar for lllllIllIlllI
0
213
Member Avatar for freeze131

Well then, what does your text file have in it? Could you post an example please?

Member Avatar for woooee
0
122
Member Avatar for lllllIllIlllI

I was just wondering how the tags for threads worked? Is this to help with a site search or something?

Member Avatar for cwarn23
0
63
Member Avatar for lllllIllIlllI

This is a simple program and all it does is fiddle with the registry and set the value of the desktop background to be the bmp file that you supply in the function. There are other things you can do with the windows registry, this is just one of the …

Member Avatar for shadwickman
0
253
Member Avatar for vmanes

Excellent! You made it to Speed Level 4 (out of 5) 54 out of 66 correct Sweet game

Member Avatar for nav33n
4
123
Member Avatar for mn_kthompson

Personally i understand the big deal. Its about WHY they are expensive. What is it about calling a function that makes it harder on the program and if you want to make a super amazingly quick program and it had to be in python then maybe this could even matter …

Member Avatar for vegaseat
0
276
Member Avatar for lllllIllIlllI

Hi, I just noticed in quite a few previous posts from the staff that it seems like a major upgrade of vBulletin is coming in. Well, that made me wonder, what is going to improve from this new version? What can we expect to see when it is brought in? …

Member Avatar for The Dude
0
111
Member Avatar for southafrica1

If you're new to python, its easiest to get yourself a script someone else has already written. I know vegaseat has a few i use from time to time. But also i find things that automate most of the process for you is quite nice. For that i would recommend …

Member Avatar for shibby
0
708
Member Avatar for cohen

Personally i think instead of using the above code you should try make it yourself by learning python [url]http://docs.python.org/tutorial/[/url] Its really not that hard, and your tasks are only going to get harder.

Member Avatar for leegeorg07
0
132
Member Avatar for peter_budo

I usually see no point of using twitter for a lot of things. But for this i must say i wouldn't mind it. That way i could find out if the server was going down for a short amount of time rather than just stressing that something was stuffed up …

Member Avatar for kaninelupus
0
160
Member Avatar for sravan953

Threading is a bit more complex than that. First we need to start the __init__ method of the threading class soo [code=python] import threading class first_time(threading.Thread): def __init__(self): threading.Thread.__init__(self) [/code] There we go, threading class's constructor has run, now the new class has all the attributes from the Thread class. …

Member Avatar for bumsfeld
0
93
Member Avatar for Ancient Dragon

Cheers AD, I must say since i first joined this forum, you were always someone to look up to quite a bit :) good luck down the track

Member Avatar for crunchie
0
189
Member Avatar for SoulMazer

In every class in the __init__ method you have to put [code=python] threading.Thread.__init__(self) [/code] Without this threading with classes just dosent work properly. So for example [code=python] import threading class Test(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self): #dostuff T = Test() T.start() [/code] Hope that helps

Member Avatar for SoulMazer
0
156
Member Avatar for compiler777

then end with going to the correct forum [url]http://www.daniweb.com/forums/forum8.html[/url]

Member Avatar for lllllIllIlllI
0
77
Member Avatar for flipjoebanana

If you use sizers you should be able to let the sizers automatically resize themselves so that the image will always have enough space and that the other panel will shrink to accommodate for it. Have a look at them here: [url]http://wiki.wxpython.org/UsingSizers[/url]

Member Avatar for flipjoebanana
0
133
Member Avatar for smoore

Yeah that would work, except the last "COUGARS" would be on a seperate line, if you wanted it to stay on the same line as "What does it spell..." then you need to use some arguments like: [code=python] print("What does it spell...", end = " ") [/code] This makes the …

Member Avatar for sravan953
0
123
Member Avatar for sravan953

If your on windows there is a great way to tell what a process is. I cant quite remember how to do it on a *NIX system. But you go CTRL+ALT+DEL and then go to the processes tab, you will see a whole lot of processes, all of the programs …

Member Avatar for Stefano Mtangoo
0
225

The End.