15,194 Topics

Member Avatar for
Member Avatar for bumsfeld

I can not figure out the order of dictionary keys, they seemed not to be sorted. Any insight?

Member Avatar for G-Do
0
366
Member Avatar for bumsfeld

Okay I have copy and pasted the code from the tutorial on the jpg image [url]http://daniweb.com/techtalkforums/thread33791.html[/url] onto my IDE editor. This time no problem with indents! Now I need to know how to instal required wxPython. I have Windows XP, also Python 2.4. Where do I best get free wxPython …

Member Avatar for wally_lawless
0
279
Member Avatar for G-Do

Hi all, I just added a clustering module to the code snippets. There are classes for modeling points and clusters of points, as well as two point-clustering functions - one is an implementation of the k-means algorithm, which I believe I posted earlier this year, and the other is an …

Member Avatar for vegaseat
0
90
Member Avatar for a1eio

How do i access or call system commands (can't really think of a better thing to call em???) for example on explorer you can right click on an object and select eject, or format ect ect (mainly eject is what i want to know about) any help would be greatly …

Member Avatar for vegaseat
0
345
Member Avatar for wally_lawless

Hey everybody, first new thread for me on this forum. Just noticed that there's no posts here involving wxPython, I'm just curious to hear if anybody knows why that might be? Anyway, I've got some projects in the works that use it and I'll be happy to post some code …

Member Avatar for vegaseat
0
132
Member Avatar for bumsfeld

I have read the tutorial about Python and JPEG here, but there si no mention about showing the actual picture!

Member Avatar for vegaseat
0
162
Member Avatar for vegaseat

[B]Intro[/B] In part 1 we learned mostly about the header of the JPEG file. In this part we get to display the image and also extract and show any embedded comments. [B]wxPython[/B] To display the image we use wxPython. The raw JPEG image information is first pushed into a data …

0
120
Member Avatar for plazmo

i know it is possible to use python with c/c++ but can python be used similairly with c#/vb?

Member Avatar for plazmo
0
193
Member Avatar for bumsfeld
Member Avatar for bumsfeld
0
3K
Member Avatar for TheSkunkMan

sorry about my post on pygame, but i'm having more trouble. frist off im ending the simple program that opens a window with if event.type == QUIT: raise SystemExit That makes a window pop up asking me if i want to quit. Is there another way to exit the window? …

Member Avatar for vegaseat
0
177
Member Avatar for shanenin

I was helping my 6 year old read some sentenses he learned in school. for example: the dog is on skates the bird is on a plane the pig rides the horse I noticed he was not really reading(kind of) the individual words, he had the whole sentenses memorized. When …

Member Avatar for bumsfeld
0
274
Member Avatar for vanitha

hi everybody :) , Python is relatively new to me and i have installed python 2.4 and am not able to use IDLE(to run the modules) that comes along with python. can anyone help me out with this. Regards, vanitha

Member Avatar for xav.vijay
0
89
Member Avatar for bumsfeld

Is there a ways to merge two similar dictionaries, and what happens if the key words clash?

Member Avatar for bumsfeld
0
220
Member Avatar for jchang

I built a function as following [code] def IsExists(fxfcustid): #global noduplicates db = db_connect("triumph","freight","vcpdb") cursor = db2.cursor() #************************************************************************* #*** Query to get entries made by the person acessing the system *** #************************************************************************* sql = '''select count(*) from triumph.fxf_salescontest_entry where fxf_acct_nbr = %(fxfcustid)s) and (delete_flag is null or delete_flag not in …

Member Avatar for xav.vijay
0
183
Member Avatar for georgerohith

Hi All I have created created executable of Helloworld.py using McMillan Installer on Fedora core 3. It is working fine on Fedora core3. when i try to execute it on fedora core 2 it gives an error "segmentation fault" plese any one can help me why is it like so. …

Member Avatar for vegaseat
0
109
Member Avatar for john_27

Hi all, I am a newbie to python and am not sure,what i am doing is correct or not ,i wanna call c function from within python. i have my python program as: [code] import DLL if __name__ == "__main__": for i in range(1,6): DLL.RECEIVE_FROM_IL_S(10,50) [/code] here RECEIVE_FROM_IL_S() is c …

Member Avatar for vegaseat
0
213
Member Avatar for qwester

Hello, I'm having trouble with a project that I am doing in turtle graphics. I'm making a graphic of a soccer field with a ball bouncing around, but I want the ball to stop when it hits the net. I can get the ball to stop when it hits the …

Member Avatar for bumsfeld
0
366
Member Avatar for TheSkunkMan

Ive been trying to make a game recently but all pygame windows freeze. i have to use the Task Manager to exit. I also have to use it to exit a fullscreen too. All im doing in my code is opening a blank screen. How can i fix that?

Member Avatar for TheSkunkMan
0
4K
Member Avatar for Jackiemonster

I have a project to do for my CMPT 120 Class. And it's using basic python coding. I'm trying to write my name out with block letters. 'JAX' I need to use for loops and i'm stuck on my X here's the code for it [code] def x(n): t3=turtle.Pen() t3.left(60) …

Member Avatar for vegaseat
0
173
Member Avatar for SpacePony

I am trying to access some of Adobe Acrobat 7.0's methods using win32com. The IAC reference manual ([url]http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/iac/IACReference.pdf[/url]) tells me that the methods I want are in AxAcroPDFLib but I'm having trouble determining which type library I need to load to get access to AxAcroPDFLib. I'm able to get access …

0
58
Member Avatar for xav.vijay

Hai friends I have a small problem with my code... I want to copy an existing file (its a model MS Excel file) to a new file & name it with the current date... First I tried to create the model Excel file, but when I opened it, it had …

Member Avatar for xav.vijay
0
317
Member Avatar for bumsfeld

Does Python have something like peek(memory) and poke(memory) of other languages that read and write to memory addresses directly?

Member Avatar for vegaseat
0
123
Member Avatar for shanenin

I would like to write an application that would search a site like "minitorrents.com" and automatically download torrent files of tv shows I like. I am thinking urllib.py might be able to do something like this. I need to be able to use the search feature of "minitorrents.com", then recursivley …

Member Avatar for shanenin
0
269
Member Avatar for Skyline_GTR

I am very new to python and I have this code that I wrote... I am trying to make it so the turtle will bounce if it touches any of the box.. but somehow the turtle does not fuction the way it suppose.. I wonder can anyone give me a …

Member Avatar for Skyline_GTR
0
568
Member Avatar for bumsfeld

What are the ways to find substring in string in Python? Which way is most effiecient?

Member Avatar for shanenin
0
218
Member Avatar for bumsfeld
Member Avatar for bumsfeld
0
113
Member Avatar for mikul86

Hello, I'm very new to python script and I am attempting to understand a part of a program developed at my work place because the have the most computer knowledge here, though still very little and the person who developed the program is no longer accesible. Here's the problem i'm …

Member Avatar for vegaseat
0
74
Member Avatar for jchang

Dear Python Gurus: I am a very new Python user, would really appreciate your help. I used Python to write a web form for users to enter. The underlined database is Oracle. One validation needs to enforce to eliminate duplicates entries. For example: one customer ID can only be entered …

0
113
Member Avatar for bumsfeld

I hear a lot about PyGame for writing games and that I understand is SDL in a Python coat. Is DirectX used in a similar fashon? Any examples?

Member Avatar for CrazyDieter
0
323
Member Avatar for mccarthp

Alright, I think my previous post about this subject was very confusing so I will try again. First off I appreciate all the responses to my prior post (Setting a Variable to the Exit Code). It is my understanding that when a script completes it returns an exit code. I …

Member Avatar for CrazyDieter
0
351
Member Avatar for coder_gus

Hello to all!How can i make a list from all the small letters of the alphabet without writing every one?Is there an operator/function that does that,something like ['a'-'z'].I've tried in many ways but i'm new in Python and if there is that operator i haven't discover it yet.My appreciation!

Member Avatar for coder_gus
0
244
Member Avatar for c_shaft05

Ok well I've hit a snag... i'm trying to write a program that makes Acronyms from user input... I can get all the letters capitalize, but the problem i am having is, well, taking the first letter from each and puting them together to make an acronym!!!!!

Member Avatar for vegaseat
0
3K
Member Avatar for Avner .H.

Hey everybody... Does sombody knows how can i use the getattr function in order to call to a sub function defined inside another one? somthing like this code: # ---------------------------- def func1 (self, func_name) : def func2 () : print "Blaaaa" def func3 () : print "Yaaaaa" getattr(?, func_name)() self.func1("func3") …

Member Avatar for vegaseat
0
163
Member Avatar for shanenin

I have been doing most all of my python programming in a linux bash shell. I mean I run all of my scripts from a bash shell. If my script produces an error(hardly ever happens :-), the error is outputted to the shell, so I am able to fix it. …

Member Avatar for shanenin
0
126
Member Avatar for bumsfeld

I am just starting to look at writing class in Python. Can a class that I write inherit Python calendar?

Member Avatar for bumsfeld
0
153
Member Avatar for bumsfeld

Does anyone have a meaningfull example of the use of the Profiler included in Python?

Member Avatar for bumsfeld
0
146
Member Avatar for bumsfeld

I know that lambda is some kind of function in Python. What does it do? Why would one use it?

Member Avatar for vegaseat
2
411
Member Avatar for bumsfeld

I hope the spelling isn't too far off, but what is list comprehension statement and why would one use it?

Member Avatar for vegaseat
0
153
Member Avatar for FinnDutch

Hello! I'm a total dummy when it comes to programming, and now I have a heck of a data extracing job to do for my graduation thesis :cry: Hopefully somebody can help me in the right direction here, because a whole day of surfing didn't get me to the right …

Member Avatar for FinnDutch
0
155
Member Avatar for vegaseat

[B]Python and the JPEG Image File, Part 1, The Header[/B] [B]Intro[/B] The JPEG image file format (.jpg) is very popular on the internet because you can pack a lot of picture information into a relatively small file. There are competing file formats like GIF and PNG. GIF is rather limited …

0
679
Member Avatar for vegaseat

[B]Intro[/B] When you declare an integer variable in C, the variable is assigned a fixed memory location with enough space to hold the type integer. When you then initialize the variable with a value, the value is put into that space. Take a look at the C code sample below: …

0
6K
Member Avatar for Dani

I am currently finishing up my B.S. in Computer Science at a local private University. When I started a couple of years ago, C++ was taught in the intro to programming course for freshmen. About two years later, Java was taught as a first language. (I disagree with that because …

Member Avatar for vegaseat
0
156
Member Avatar for bumsfeld

Is there a way one can interrupt the sleep() function with a key press in Python?

Member Avatar for a1eio
0
296
Member Avatar for shanenin

For my simple programs I have wirtten, I have just been using a simple editer with syntax highlighting. This seems sufficient. What kinds of thing can a good IDE do for me?

Member Avatar for vegaseat
0
142
Member Avatar for Ene Uran

Couldn't sleep last night, so I was browsing and found the "Starting Python" thingy. I must say Python looks interesting from the examples. I learned C++ in school, Python sure looks easier to understand. Does any one think it's better than C++?

Member Avatar for vegaseat
0
178
Member Avatar for bumsfeld

Python is relatively new to me. I have mostly programmed in C and C++. I read that Python has a good build-in debugger, but I can not understand the information in the reference manual. Can anybody please give an actual commented example how this works.

Member Avatar for Micko
0
123
Member Avatar for Avner .H.

hello fellows, I seem to have a little problem: I tried to use the function getattr([I]object[/I], [I]attribute[/I]) with two strings which is being read from a xml file as arguments, and seem to have a problem with sending the first one as a string. the function thinks that the string …

Member Avatar for kerumai
0
235
Member Avatar for bumsfeld

I have read vegaseat's "Projects for the Beginner" sticky and got really interrested in the eqaution solver for physics or mathematics problem. I just need a little Python hint how to get this started.

Member Avatar for vegaseat
0
118
Member Avatar for CutCrusader

Thanks a lot for the help on my last question. I have another problem that I need help with. I need to generate the check digit for an ISBN number. Like if the input is 076372339 the function should return 8. To find the check digit, which is the last …

Member Avatar for vegaseat
0
131
Member Avatar for bumsfeld

I know Python has adopted Java's decorator, but I can not make much sense from the reference manual example. It would be nice if soemone could give a good example of the implimentation of a Python function decorator.

Member Avatar for vegaseat
0
109

The End.