Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
11
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
Member Avatar for a1eio

Hey, Just a simple question really, i was looking through the documentation for python and i couldn't find anything that did basic cd drive things, like ejecting it and stuff. The one module i did find 'cd' was only compatible on IRIX systems. After failing miserably on google i was …

Member Avatar for Mahmoud_16
0
5K
Member Avatar for vegaseat

I program for a hobby, not a job (yet) so i have a severe hunger for ideas, this thread is great and i would like to contribute, Here are some ideas that might give someone in my situation something to do: This is an extract from a song by pink …

Member Avatar for vegaseat
20
18K
Member Avatar for sneekula

I personally always use the root.destroy() method, it seems to work best and I've never had any problems with it.

Member Avatar for entropicII
0
44K
Member Avatar for acrocephalus

what do you mean when you ask how to make the program show the paths to the selected folder and file. Do you want to show the file's contents, show an explorer window of the file's location or some sort of tree view of the file?

Member Avatar for ronkalycarlos
0
18K
Member Avatar for pato

[url]http://bembry.org/technology/python/index.php[/url] Has a whole quick tutorial and it has notes on all the main topics it covers, so you can read it, or use it as a reference, i found the Tkinter section wickedly useful as a starter into gui stuff, it also has some exercises.

Member Avatar for PythonHelper
0
1K
Member Avatar for caribedude

try GUI2exe, it's a gui wrapper for py2exe. [url]http://xoomer.alice.it/infinity77/main/GUI2Exe.html[/url]

Member Avatar for patratacus
0
2K
Member Avatar for Micko

Yea but Micko has a point. it does suck when you want to take a simple short and sweet program you made with python to school or an internet cafe or any other place where you are not allowed to install stuff, i mean py2exe is good but whenever i …

Member Avatar for darkside2205
0
321
Member Avatar for trihaitran

I'm not sure if I'm reading your question correctly, but if you want to open a file that's in the SAME place as your .py script that opens the file, you don't need to set any form of path name. You just type in the name of the file on …

Member Avatar for dev.vini
0
729
Member Avatar for a1eio

Hi, all you daniwebber's!!! Simple (ish) question, AI seems to be a really cool subject, the one problem for me is that i havn't a clue at all what it is and how it works (more to the point, how i could learn to implement it) So i'm just wondering, …

Member Avatar for rico001
-1
276
Member Avatar for a1eio

Hi, I was wondering how someone would go about making a scrolling ticker or marquee using Tkinter in such a way that allows you to easily add on text and remove.. kinda like a news scroller on the bottom of the tv? thanks all a1eio

Member Avatar for donnie6680
0
1K
Member Avatar for kc0arf

school rules concerning computers suck. I have never met a schoo technician who is GOOD at his/her job, They always impose ridiculous restrictions for example at my school you can't even check the time on the windows startbar?? wtf?? In my opinion it provokes students to "mess" with the system …

Member Avatar for goldeagle2005
0
322
Member Avatar for a1eio

For more information on threading read this [B]excellent[/B] 4 page tutorial: [URL="http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/"]http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/[/URL]

0
394
Member Avatar for eggowaffles

don't hijack eggowaffles thread ramakrishnakota, if you need help and it's not related to this guy start a new thread

Member Avatar for mrnutty
0
146
Member Avatar for a1eio

i've made a little animation using python and the pygame module, I'm just wondering if it's possible to turn that into a screensaver? is there a format i have to save it to? If anyone knows i would be grateful for the solution thanks, a1eio

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for inkcoder

[code=python] encode = lambda txt: ".".join([str(ord(letter)-96) for letter in txt if ord(letter) in range(97,123)]) decode = lambda txt: "".join([chr(int(char)+96) for char in txt.split(".") if int(char) in range(1, 27)]) [/code] Output >>> [code] >>> encode('this is a message!!!') # anything not lowercase a-z gets silently ignored '20.8.9.19.9.19.1.13.5.19.19.1.7.5' >>> decode('20.8.9.19.9.19.1.13.5.19.19.1.7.5') 'thisisamessage' # …

Member Avatar for a1eio
0
139
Member Avatar for The_Rick_14

Google have this thing called the Google App Engine. [quote] Google App Engine lets you run your web applications on Google's infrastructure. ... Google App Engine applications are implemented using the Python programming language. The runtime environment includes the full Python language and most of the Python standard library. [/quote] …

Member Avatar for The_Rick_14
0
179
Member Avatar for s_jmp

when you create a socket, you need to bind it with a port, address so other sockets have something to connect to. [code=python] sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind((address, port)) [/code]

Member Avatar for a1eio
0
64
Member Avatar for Azurea

Hmm.. Well strangely enough it works on my machine (XP) From idle and from cmd. Not sure what the problem is, but if you need to get the address of a messege sender then just do that in the thread (if it's sockets it will be safe)

Member Avatar for Azurea
0
107
Member Avatar for tondeuse34

python has a keyword function [icode]in[/icode] that would be useful in your example. [code=python] if password in pass_list1: # do something [/code]

Member Avatar for tondeuse34
0
122
Member Avatar for swaroopk85
Member Avatar for a1eio
0
43
Member Avatar for Azurea

there must be something else going on. When you make a copy of a list [icode]list2 = list1[:][/icode] it fills list2 with list1's values, but when you change either list1 or list2, the change isn't mirrored so list1 would stay the same if list2 was changed. Are you sure your …

Member Avatar for Azurea
0
92
Member Avatar for rodG

You should definitely use tkinters .after() function, it enters a local event loop which means it doesn't block your program. [code=python] def blink(self): if not self.stop: # check self.stop is false before proceeding print 'looping',self.stop self.label.configure(bg=choice(COLORS)) self.label.update_idletasks() self.after(100, self.blink) # after 100 ms, call function self.blink [/code] choice is a …

Member Avatar for rodG
0
4K
Member Avatar for lllllIllIlllI

Well you could just use a Thread object to do the counting for you and then in your main program everytime the user enters a key, you just call a function of the Thread object counting that returns it's current value. The example below might help. [code=python] # counterTest.py, a1eio …

Member Avatar for a1eio
0
8K
Member Avatar for FreezeBlink

[code=python] n = float(2) m = float(3) print n/m [/code] Or [code] n = 2.0 m = 3.0 print n/m [/code] Hope that helps.

Member Avatar for vegaseat
0
100
Member Avatar for shigehiro

well as far as i can see, whatever resides within [icode]self[filename][/icode] is clearly not a valid filepath. There was a sort of hint to what it might contain in the second error. [quote] [IOError] of [Errno 36] File name too long: 'ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade\nI,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80\nR,0023,Grid Computing in today era,"Henry …

Member Avatar for a1eio
0
255
Member Avatar for vegaseat

[code=python] def function(*args): print type(args) print args function('arg1', 'arg2', 'arg3') [/code] output [code] <type 'tuple'> ('arg1', 'arg2', 'arg3') [/code] If you need a list: [icode]args = list(args)[/icode]

Member Avatar for a1eio
0
208
Member Avatar for majestic0110

hmm.. what module is this 'call' function from? because it's not a builtin / keyword function

Member Avatar for Ene Uran
0
126
Member Avatar for nsandestin

[code=python] >>> string = "A simple example string." >>> if 'example' in string: print 'the word '%s' is in: "%s"' % ('example', string) the word 'example' is in: "A simple example string." >>> [/code]

Member Avatar for nsandestin
0
119
Member Avatar for blaze423

Well if your running your tkinter gui by calling: root.mainloop() or something similiar then you should change that to: [code=python] while 1: root.update() #repeat code here [/code] You do everything as normal but then when you get to the displaying part, you enter a loop which updates the gui and …

Member Avatar for a1eio
0
226
Member Avatar for heshan

[code=python] >>> exec("print 2") 2 >>> exec("print 2+2") 4 >>> exec("vars = (var1, var2, var3, var4) = 'a', (1,'2',3.0), 44, 0.7\nfor v in vars:\n print v, '=', type(v)") a = <type 'str'> (1, '2', 3.0) = <type 'tuple'> 44 = <type 'int'> 0.7 = <type 'float'> [/code]

Member Avatar for Ene Uran
0
107