904 Posted Topics

Member Avatar for bumsfeld

I want to creat file with each line having date + time + data so I can append more data as need be and know when it was added. What date+time function would be best?

Member Avatar for bumsfeld
0
160
Member Avatar for gmv

I have played around with SDL that can do both sounds files and graphics things. It is used by gamers a lot and is free for DevC++. Much information availabel.

Member Avatar for prog-bman
0
168
Member Avatar for bumsfeld

I have run the slider demo that come with wxPython docs. It is rather stupid, as it puts slider on a panel using many unexplained numbers, never tells how to get position of slider or what to do next if the slider is moved. I am much lost, does anyone …

Member Avatar for bumsfeld
0
496
Member Avatar for shanenin
Member Avatar for msme

Looking at the last three digit only, guess would be number2 is random. Fuzzy Logic?

Member Avatar for Narue
0
235
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 a1eio

If you know Windows/DOS batch language you can create and save batch file from within Python program, than run it with os.system("mybatfile.bat")

Member Avatar for vegaseat
0
345
Member Avatar for wally_lawless

I know VegaSeat has put some wxPython code examples in the snippet part of this forums. Like: [url]http://daniweb.com/code/snippet227.html[/url]

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 bumsfeld
Member Avatar for bumsfeld
0
3K
Member Avatar for shanenin

**rambling** man python is great. you can do such nice stuff with next to no code, or programming experience. --- and it is so easy to experiment with the codes!

Member Avatar for bumsfeld
0
274
Member Avatar for vanitha

You need to give somewhat more info, like operating system? What have you actually tried? Are your looking for IDLE file that starts the editor?

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 SpS
Member Avatar for qwester

I have use the space/tab feature too, but don't always know how many spaces each tab is.

Member Avatar for bumsfeld
0
366
Member Avatar for TheSkunkMan

I understand that PyGame is simply a wrapper for SDL. That creates a problem, Python has a good memory manager, but SDL written in C++ has the usual memory management is up to you thing. THESE TWO WORLDS LIKE TO CLASH AND CRASH!

Member Avatar for TheSkunkMan
0
4K
Member Avatar for xav.vijay

You may want to use shutil.copy(sourcefile, destinationfile), it gives copy the current date, shutil.copy2(sourcefile, destinationfile) gives the date of the file you copy.

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

This is pretty complex programming. You are leaving me in awe! Where do you get the idea in first place?

Member Avatar for shanenin
0
269
Member Avatar for Skyline_GTR

I looked at you updated project2.py. Looks like you mixed space and tabs, got that fixed. Random is imported but never used. Don't you need line to start program? What is range of steps, 1000 to 5000?

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
219
Member Avatar for bumsfeld
Member Avatar for bumsfeld
0
113
Member Avatar for Elthran

Don't forget to multiply your centimeters by 0.033 to get the height in feets!

Member Avatar for ITgeneration
0
947
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 SpS
Member Avatar for bumsfeld
Member Avatar for Ancient Dragon
0
236
Member Avatar for bumsfeld

I need to write about a half one page instruction string for one of my C++ programs. How do I do this best, so I can read it in the code and easly update it later. I have tried concatinating, but that makes corrections tough on the wrapping edge.

Member Avatar for Narue
0
322
Member Avatar for BountyX
Member Avatar for ashwinperti

Is it wastefull to throw in an extra header file that may not be needed. Does it add much to the size of the final file, or does the compiler catch it?

Member Avatar for Narue
0
116
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
412
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
154
Member Avatar for Ghost

Check this site: [url]http://www.columbia.edu/kermit/ck80.html[/url] and go to C-Kermit site.

Member Avatar for Narue
0
50
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 Ene Uran

I don't think Python is better than C++, but you can do thinks at a higher level with it.

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 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 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
Member Avatar for CutCrusader

Vegaseat, Micko gave the correct answer to CutCrusader's question. Your answer with the zero x in front does not.

Member Avatar for CutCrusader
0
99
Member Avatar for Mahen

[QUOTE=Ancient Dragon][URL=http://www.google.com/search?hl=en&q=how+to+send+email+with+c%2B%2B&btnG=Google+Search]Here[/URL] is a good one that is generic to any MS-Windows 32-bit compiler.[/QUOTE] How to send email in Visual C++ ? What are you drinking?

Member Avatar for bumsfeld
0
180
Member Avatar for kokopo2
Member Avatar for Micko

I thinks IDLE uses Tkinter (TCL) and that is more internationally than PyWin's wxPython based code. If you want portability of your code on the internet, don't use these special characters. I have the same problem with other non-english characters too.

Member Avatar for Micko
0
181
Member Avatar for a1eio

Can you display that file on an editor? Are you sure you don't have a binary file? In that case use 'rb' Using the python shell makes things look messy.

Member Avatar for vegaseat
0
505
Member Avatar for Avner .H.
Member Avatar for vegaseat
0
230
Member Avatar for Micko

I am still mostly using C. I know this probably a little bit old fashioned. I am following Python conversation closely too, looks like a interesting language to me. Does not have many many { and } and ;

Member Avatar for bumsfeld
0
213
Member Avatar for bumsfeld

Can I wrote an object to files and later on retrieves it with its integrety intact? Is there a ready made function or do I have to write one? I am new to Java, is this what one calls serialization?

Member Avatar for mmiikkee12
0
106
Member Avatar for peaceofmind

I am lost. Do you want to use a dictionary or a list? What does PHP have to do with it?

Member Avatar for bumsfeld
0
175
Member Avatar for Shulc

There are more threads here then there are Delphi books in my book store.

Member Avatar for jwenting
0
116

The End.