67 Posted Topics
Re: TKinter isn't very thread safe. What exactly are you trying to do? If you want to have more than one windows open Tkinter has a solution for that, look up TopLevel for tkinter(I'm not gonna post an example unless i know your problem). | |
So when I take an argument off the stack it seems that is in the form of a string, is there a way i can convert it to a integer so i can "cmp" it with another argument which i also wish to convert to an int? I am a … | |
Re: [CODE] #include<iostream> using namespace std; int main() { char name; int counter; while (name!="stop") { cout<<"Enter your friend's name (""stop"" to quit): "; cin>>name; cout<<"so you have"<<counter <<"\n\n"; counter ++; } cout<<"Go Make some friends you emotional loser!\n"; system ("pause") ; return 0; } [/CODE] In my opinion the cleanest … | |
Re: I think you have to use the seek() function to set the offset in your file, try this maybe. [CODE] fin = open ("origDict.txt", "r") fout = open ("newDict.txt", "w") lif = 0 # Lines in original file lpp = 72 # Lines per page. Default value, look at user … | |
Re: Are you sure the cookie gets put into your browser, because im pretty sure cookielib is for use with urllib/2 and httplib. However you could probably save a cookie in the right format to your browsers cookie cache. I might be wrong, but i doubt cookielib has anything to do … | |
Re: Its actually not as tough as people are making it out to be, if you have a space you need to put ' ' or " " around it to clarify that it has a space, maybe try this: [CODE] import os os.system("'C:\Winamp\Winamp.exe'") [/CODE] I may be wrong, i might … | |
I'm extremely new to assembly and was wondering if there is a speed difference between 16, 32, and 64bit registers. | |
Re: [QUOTE=i are smart;994757]please tell me that there is a difference because i've spent an entire week figuring out how to make cTurtle work. Now that I have succeeded, both modules appears to have the same functions. Please tell me that there is a difference[/QUOTE] Thing is THEY DO BOTH DO … | |
Re: Handle? Like its throwing an exception? You honestly make no sense. | |
Re: This should do it, urllib should do all the dirty work, even with cookies, I've used this before to auto login, works perfectly [CODE]import urllib2,urllib o = urllib2.build_opener( urllib2.HTTPCookieProcessor() ) urllib2.install_opener(o) id='kimok222' pw='1qaz2wsx' p=urllib.urlencode({"id" : id, "pwd" : pw}) f=o.open("hxxps://login.plaync.co.kr/login/login", p) data=f.read() f.close() #now to request something while logged in … | |
Re: [QUOTE=The-IT;996893]hi, I just created this awesome python application and i want to spread it around, but every one has python. I was just wondering if I could compile python source into a linux executable like py2exe, and then compile the executable into a .deb installer file. any help would be … | |
Re: Random generation IS very predictable, not to mention a brute force could probably crack that in about 5min. Cryptography is really intense, and your not really using an algo, more like a formula. Not too mention most encryption methods use randomly generated keys, and TrueCrypt for example uses your mouse … | |
Re: There aren't any modern graphic drivers that don't support OpenGL, try reinstalling your graphics driver, all openGL is built into your driver. | |
![]() | Re: Yeah you'll need to use exceptions, but if you want the script to continue after the error you're going to have to "pass" it, try this: [CODE] for i in range(1, 638): try: temp=start+str(i) permlist.append(str(url.urlopen(temp).readlines()[88])) textlist.append(str(url.urlopen(temp).readlines()[77])) except Error, err: print "Index Error: %d at %d" % (err, i) pass [/CODE] … |
Re: I prefer Postgre because I don't like many aspects of MySQL and its preformance. If needed you can use serialization+threading to acheive this, or make your own database using one of pythons many databasing libraries. | |
Re: Its too early to start using python 3.0+, everyone is using 2.6, 3.0+ isn't compatible with previous version because they changed the code syntax and the way some builtin functions work. I'd say go for 2.6 or anything v2 basically, its still supported and about 99.9% of people use 2.x … | |
Re: Problem with microsoft is they aren't good programmers but they are good at marketing. Thing with linux is its programmed well but obviously marketed bad, but thats not an issue because Linux needs no funding and it spreads through the word of its users. Linux isn't gonna die by the … |
The End.