1,730 Posted Topics

Member Avatar for wotthe2000

I haven't checked much, but I run error too. One thing, I see "message" in many places and don't know if it is class or variable Anyway, my IDE complained of mixed indentation and here is corrected version [CODE=python] global msgstr def create_message(message, msgstr): if msgstr[0:3].upper() == 'CMD': return apply(message, …

Member Avatar for wotthe2000
0
96
Member Avatar for revenge2

Take this example: you have class of pets and each have method/attribute. See how self applies. Not very neat (one can make it more tidy and neat) but gives idea. [CODE=python] class Dogs(): def __init__(self) def OnBarking(self, voice): #make voice be attribute/belong of self which is now Dogs class self.voice …

Member Avatar for sneekula
0
220
Member Avatar for Stefano Mtangoo

I have many programs in start menu. I want to group all related programs. Can you propose what free software is the best :)

0
47
Member Avatar for Inlovewithnight
Member Avatar for noamjob

first, it is better to use code tags. Having that said, it seems the PDF is encrypted. So try something not encrypted or check for decryption option if available in pyPDF module (I have never used it)

Member Avatar for Stefano Mtangoo
0
6K
Member Avatar for Stefano Mtangoo

Hello colleagues, I wan't to upgrade to python 2.5.4 from 2.5.2 but I don't want to lose my modules. Is it possible to upgrade without removing those modules? Thanks

Member Avatar for Stefano Mtangoo
0
91
Member Avatar for blumixx
Member Avatar for pinkdiva

[QUOTE=FragFighter;775477] I'm not entirely sure. It should be working anyways. I'm assuming you have a genuine version of Windows, because if you don't that may be the cause.[/QUOTE] Vista sometimes becomes very stubborn sometimes, It failed to do so for me. It seems to be some sort of bugs-and-fix. I …

Member Avatar for Stefano Mtangoo
0
158
Member Avatar for revenge2

+1 for Jlm699 Nothing new but using modules' returned value is same as functions [code=python] def addition(a, b): c = a+b return c summ = addition(2, 3) print summ [/code] The only difference is, the module is imported and uses as you always access module methods assume that is in …

Member Avatar for Murtan
0
332
Member Avatar for bhanu1225
Member Avatar for Stefano Mtangoo
0
85
Member Avatar for surealis

agree with Jlm699! Just download wxpython demo and enjoy examples demonstrating how to do things in wxpython, very helpful

Member Avatar for Stefano Mtangoo
0
268
Member Avatar for Luckymeera

check [url]www.vpython.org[/url] and check pythons time module after reading, you come up with your code and we help you improve it Happy coding!

Member Avatar for Stefano Mtangoo
0
48
Member Avatar for Stefano Mtangoo

I found on net this: "Mixins are classes that further enhance the functionality of a wx.ListCtrl. Mixin classes are so called helper classes. They are located in wx.lib.mixins.listctrl module. In order to use them, the programmer has to inherit from these classes. " Please someone explain me the way this …

Member Avatar for Stefano Mtangoo
0
96
Member Avatar for revenge2

just to get a clue of things: [code=python] string = raw_input("Enter Number: \n") print type(string) integer = int(string) print type(integer) floating = float(string) print type(floating) [/code]

Member Avatar for mn_kthompson
0
363
Member Avatar for turtle463

Live CD is anybootable cd that acts as OS and can use it. [url]http://en.wikipedia.org/wiki/Live_CD[/url] [url]http://www.google.co.tz/search?q=live+cd&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a[/url] [url]http://www.livecdlist.com/[/url]

Member Avatar for Stefano Mtangoo
0
76
Member Avatar for hollowman1

Why Bother? I use firefox 3 and I enjoy, Consider it! Anyway Bennet is good at MS things may be will help on this

Member Avatar for Zappaboss
0
284
Member Avatar for Danthon

Check for garbage programs that might be installed and startup withsystem

Member Avatar for jbennet
0
124
Member Avatar for mikewalsh89

break and continue might be what you need if x==0 [COLOR="Red"]break[/COLOR] --> this stops the Loop y==1 [COLOR="Red"]continue[/COLOR] --> this makes loop running this might help: [url]http://www.network-theory.co.uk/docs/pytut/breakandcontinueStatements.html[/url]

Member Avatar for Nuez_Jr
0
149
Member Avatar for kiransarv

try something like this [code=python]import time data = open('ipaddresslist.txt','r') listofipaddresses = [] #make timming while True: for line in data.readlines(): listofipaddresses.append(line.strip()) data.close() time.sleep(5)[/code]

Member Avatar for mn_kthompson
0
121
Member Avatar for nitu_thakkar

[QUOTE=Salem;771209]What's a [URL="http://www.daniweb.com/forums/thread165986.html"]search engine?[/URL][/QUOTE] is a website that helps you get what you want from net! [url]http://en.wikipedia.org/wiki/Search_engines[/url] try to see: [url]www.google.com[/url] [url]www.altavista.com[/url] [url]www.dogpile.com[/url] [url]www.metacrawler.com[/url]

Member Avatar for Stefano Mtangoo
-1
355
Member Avatar for Stefano Mtangoo

Hello Dev, I have good news which lasts some hours to come. There are these guys called giveawayoftheday. I enjoy their giving away of commercial software for free with limited valid download time. WHY I WRITE HERE? Not to promote them, but to tell you that today's giveaway is Edraw …

0
52
Member Avatar for Ghostenshell

[QUOTE=sneekula;770599] I would suggest you write and run your code on an IDE made for Python code, something like IDLE or DrPython. Otherwise your output window will be set to the OS command window colors.[/QUOTE] And Wingware's Wing IDE if you need simple debugging

Member Avatar for Stefano Mtangoo
0
134
Member Avatar for Phaedrus2401

I'm have never done it either but I know that Python docs are downlodable. Here is the link: [url]http://www.python.org/doc/2.5.4/download/[/url]

Member Avatar for mn_kthompson
0
74
Member Avatar for Stefano Mtangoo

Hello all, I was looking for simple application to keep my record. I have explored many app on net but are too complex, and have decided o make my own. However, I don't know if I should use wxGrid or just text controls in displaying data. If suggesting wxgrid, where …

0
48
Member Avatar for revenge2

why don't you start with 2.6? I suggests this for newbies as there are pretty many tutorials and books there. Only when you have grasped the basics you can consider Py3k. Also few (I guess none) of non standard modules aren't yet out for python! If you change your mind …

Member Avatar for Stefano Mtangoo
0
468
Member Avatar for revenge2

[QUOTE=Gribouillis;768348] from my experience, they should be avoided. Most editors support converting tab key hits into spaces.[/QUOTE] I use one tab or four spaces They give me no problem, so I guess: 1Tab = 4spaces

Member Avatar for mn_kthompson
0
122
Member Avatar for nrupparikh

Its true ! Thanks Python Dev team. I saw one example from Ene where there was no indentation, I whoop it was horrible! Anyway it is more readable than assembly but wait a minute snee, Assembly is more readable than 10000100101111, I mean a turbulent of machine code language!

Member Avatar for Aia
-1
151
Member Avatar for revenge2

[url]http://docs.python.org/3.0/whatsnew/3.0.html[/url] [url]http://docs.python.org/3.0/[/url]

Member Avatar for sneekula
0
126
Member Avatar for Mr_Grieves

Wow I thought pysco was for only speeding debugger when I used That Old friend eclipse and pydev. Thanks all for info

Member Avatar for Stefano Mtangoo
1
94
Member Avatar for lllllIllIlllI

I have not used python 3k because I'm still learning under 2.5 Anyway I will be excite for those already are playing with it to tell me what is new and what is better about 3k, which excite them Like what Gribouillis said

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for Stefano Mtangoo

I have Ubuntu/Vista Multiboot. While in Ubuntu I can access all my NTFS vista partition but not vice versa. Is there a legal hacking to get vista read the ubuntu file system?

Member Avatar for John A
0
152
Member Avatar for BagelAnne

Next time remember to create at Least TWO admin accounts for safety. That will help in case of problem in one account. Since problem is at hand, the best way to handle it is learning here: [url]http://www.nu2.nu/pebuilder/[/url] [url]http://www.google.co.tz/search?q=pebuilder&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[/url] and check password plugin: [url]http://www.bootcd.us/BartPE_Plugin_Details/384/Windows-Password-Renew-1_0-RC2.html[/url] add that one and boot with disk …

Member Avatar for BagelAnne
0
571
Member Avatar for sittas87

OK i WAS ABOUT TO SUGGEST RUN-->cmd THEN TYPE explore BUT YOU SAID HE DID SO. Here are my Question: What about task bar? Here is my suggestion: Try using system restore to restore it to last worked config and then re-scan it using trusted AV try and Feedback Steve

Member Avatar for mihigo
0
123
Member Avatar for elvenstruggle

You can use PyAudio, or Pymedia (I havent use any but pyaudio is simple by looking with eyes). If that is too light, go for DLLs like Bass. Infact Im working with Bass.DLL and works fine for me, though I'm still learning it! [url]http://www.un4seen.com/forum/?topic=9271.0[/url]

Member Avatar for Ene Uran
0
1K
Member Avatar for Clipper34
Member Avatar for Stefano Mtangoo
0
94
Member Avatar for Stefano Mtangoo

I once used Juice and then came to find i tunes. I used it to download the podcasts but it have became stubborn these days. It will not download saying err. I found somewhwere songbird but havent used it. So here is my Qn: Do songbird do anything worth to …

0
45
Member Avatar for leegeorg07

Mh, I will print that philosophy and try to get something out of it Thanks Gribouillis

Member Avatar for Stefano Mtangoo
0
562
Member Avatar for Stefano Mtangoo

I was thinking of Separating functions from GUI. I want when have different classes of GUIs that share functions, then I will have one class full of function/methods on need. However I failed to separate them, for I could not make instance of Functions class in the gui class in …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for Kezoor

Like when you want to create class that will create simple dialog and then call it from GUI you have created: [CODE=python] import wx class Dialogi(wx.Dialog): ........... [/CODE]

Member Avatar for Kezoor
0
130
Member Avatar for Stefano Mtangoo

Hello Dev, I want to change font colour in wx.RichTextCrtl, but I find the way it is used in wxDemo is complicated with no code to explain. Is there simple way to do it? If there is no other way, can someone explain the way it is done in demo …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for gsingh2011

why not put in My documents or elsewhere? I count working in python folder as dangerous practice that I avoid

Member Avatar for Stefano Mtangoo
0
558
Member Avatar for rajasekhar1242

open python shell and type in: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] Type "help", "copyright", "credits" or "license" for more information. >>> import MySQLdb if nothing happens and interpreter gives >>> then behold it is up and running othewise you will get traceback: Traceback …

Member Avatar for nikhilvishnupv
0
457
Member Avatar for Rejinacm

[url]http://python.net/crew/theller/ctypes/tutorial.html#fundamental-data-types[/url] [url]http://docs.python.org/library/ctypes.html[/url]

Member Avatar for sneekula
0
140
Member Avatar for Stefano Mtangoo

I use ctypes to play AUDIO using bass.dll found here: [url]http://www.un4seen.com/[/url] I have gone so far and tried as they advised me at their forum entry here: [url]http://www.un4seen.com/forum/?topic=9257.0[/url] But I still get errors. Can anyone take code and analyze to point out source of error? Here is the code, pse …

Member Avatar for Stefano Mtangoo
0
125
Member Avatar for cointosser

My friend, I propose you start with this: [url]http://www.greenteapress.com/thinkpython/thinkpython.pdf[/url]

Member Avatar for Murtan
0
120
Member Avatar for Hrothgar

[url]http://docs.python.org/tutorial/[/url] [url]http://zetcode.com/tutorials/pythontutorial[/url]

Member Avatar for Stefano Mtangoo
0
175
Member Avatar for jbennet
Re: SP2

I have problems with the MS updates. They sometimes cause great problems. I have recently rolled back using sys restore and Lost my Anvil Taskmanager I got from giveaway! It messed up with my HDSPA huawei E220 and my Wing IDE. It have done before and my Laptop became Unstable …

Member Avatar for beep
0
108
Member Avatar for Crazywu

wxpython is exactly what you need. It looks native in the platform take a look at wxpython.org for docs and API plus zetcode.com for tutorial

Member Avatar for Stefano Mtangoo
0
774
Member Avatar for sumzilla
Member Avatar for Stefano Mtangoo
0
357
Member Avatar for MaxManus

if wxpython, then Show(True) method is to show widgets and by default is True so you don't need to add it. figure()?? Not sure what it is! Which modules are you using?

Member Avatar for MaxManus
0
85

The End.