1,730 Posted Topics
Re: 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, … | |
Re: 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 … | |
I have many programs in start menu. I want to group all related programs. Can you propose what free software is the best :) | |
Re: Avast 4.8 Home Zone alarm firewall Spyboat S&D | |
Re: 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) | |
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 | |
| |
Re: [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 … | |
Re: +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 … | |
Re: check mysqldb module, the simplest way to deal with my sql in python | |
Re: agree with Jlm699! Just download wxpython demo and enjoy examples demonstrating how to do things in wxpython, very helpful | |
Re: 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! | |
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 … | |
Re: 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] | |
Re: 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] | |
Re: Why Bother? I use firefox 3 and I enjoy, Consider it! Anyway Bennet is good at MS things may be will help on this | |
Re: Check for garbage programs that might be installed and startup withsystem | |
Re: 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] | |
Re: 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] | |
Re: [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] | |
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 … | |
Re: [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 | |
Re: 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] | |
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 … | |
Re: 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 … | |
Re: [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 | |
Re: 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! | |
Re: [url]http://docs.python.org/3.0/whatsnew/3.0.html[/url] [url]http://docs.python.org/3.0/[/url] | |
Re: Wow I thought pysco was for only speeding debugger when I used That Old friend eclipse and pydev. Thanks all for info | |
Re: 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 | |
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? | |
Re: 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 … | |
Re: 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 | |
Re: 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] | |
Re: Can you explain more? I don't understand what you want to do | |
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 … | |
![]() | Re: Mh, I will print that philosophy and try to get something out of it Thanks Gribouillis |
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 … | |
Re: 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] | |
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 … | |
Re: why not put in My documents or elsewhere? I count working in python folder as dangerous practice that I avoid | |
Re: 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 … | |
Re: [url]http://python.net/crew/theller/ctypes/tutorial.html#fundamental-data-types[/url] [url]http://docs.python.org/library/ctypes.html[/url] | |
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 … | |
Re: My friend, I propose you start with this: [url]http://www.greenteapress.com/thinkpython/thinkpython.pdf[/url] | |
Re: [url]http://docs.python.org/tutorial/[/url] [url]http://zetcode.com/tutorials/pythontutorial[/url] | |
Re: 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 … | |
Re: 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 | |
Re: take a look here: [url]http://zetcode.com/wxpython[/url] | |
Re: 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? |
The End.