Windows bandwidth monitor
Hey guys, I've done some searching but can't seem to find anything that helps me out. I want to write a simple bandwidth monitor that will sit in the taskbar of windows and tell me my upload and download speeds. I intend to use wxpython for the little taskbar icon. If anyone can give me a helping hand I would be more than appreciative. Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Windows bandwidth monitor
Cool thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: a good programming text editor (not IDE)
Your SciTE problem is easily fixable by choosing options / Open Global Options File and then there are plenty of settings. Use the SciTE.html file and it will explain them all and there are many but the defaults usually work well to start out. I have had no issues with Linux. I use Debian. Here is a snippet of the first few lines of the global options file. # Globals command.name.2.*.py=PyChecker command.2.*.py=C:\Python23\Scripts\pychecker.bat --stdlib --blacklist --varlist $(FilePath) tab.timmy.whinge.level=1 # Window sizes and visibility if PLAT_WIN position.left=30 position.top=25 if PLAT_GTK position.left=15 position.top=30 position.width=1200 position.height=950 As you can see if you are running windows if PLAT_WIN those are the settings for your window etc... Also grab this file. http://scintilla.sourceforge.net/gen_python_api.zip You can run it and it will build an API that you put in the root of SciTE and it will auto complete and it will give you help tips if you want them. I can't say that this is better than VIM but SciTE works great if you are mostly a python programmer. -- http://mail.python.org/mailman/listinfo/python-list
Regular Expression help
I have some data and I need to put it in a list in a particular way. I have that figured out but there is stuff in the data that I don't want. Example: 10:00am - 11:00am:/b a href=/tvpdb?d=tvpid=167540528cf=0lineup=us_KS57836dchannels=us_KCTVchspid=166030466chname=CBSprogutn=114615.intl=usThe Price Is Right/aem All I want is Price Is Right Here is the re. findshows = re.compile(r'(\d\d:\d\d\D\D\s-\s\d\d:\d\d\D\D:*.*/aem)') I have used a for loop to remove the extra data but then it ruins the list that I am building. Basically I want the list to be something like this. [[Government Access], [Price Is Right, Guiding Light, Another show]] the for loop just comma deliminates all of them so I lose the list in a list that I need. I hope I have explained this well enough. Any help or ideas would be appreciated. TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: Regular Expression help
Great I will test this out once I have the time... thanks for the quick response -- http://mail.python.org/mailman/listinfo/python-list
Re: Regular Expression help
I considered that but what I need is simple and I don't want to use another library for something so simple but thank you. Plus I don't understand them all that well :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Regular Expression help
r'a[^]*(.*?)/a' With a slight modification that did exactly what I wanted, and yes the findall was the only way to get all that I needed as I buffered all the read. Thanks a bunch. -- http://mail.python.org/mailman/listinfo/python-list
Re: Regular Expression help
Interesting... thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: Coming from delphi - looking for an IDE - willing to spend money
Check out SciTE. It is from the creator of Scintilla and it's great. It's not a full IDE but with python you'll learn you really don't need it, at least IMHO. It's fast and works on windows and Linux. http://www.scintilla.org/SciTE.html I would also checkout WingIDE. Its one of the best, again IMHO. If you write open source apps you can have the IDE for free although they do ask to take a look at your source code and that you have a web page up for it. I believe those are the only requirements. If you don't have your project to that stage yet, they will give you a 6 month license to get it there. http://wingware.com Wing IDE Professional v. 2.x $179.00 $295.00 $395.00 Wing IDE Personal v. 2.x $35.00 $60.00 $80.00 -- http://mail.python.org/mailman/listinfo/python-list
Re: RegExp question
In my opinion you would be best to use a tool like Kiki. http://project5.freezope.org/kiki/index.html/# This will allow you to paste in the actual text you want to search and then play with different RE's and set flags with a simple mouse click so you can find just what you want. Rember what re.DOTALL does. It will treat white spaces special and if there are line breaks it will follow them, otherwise it will not. It's a good idea to have a grasp of regular expressions or when you come back to your code months / weeks later, you will be just as lost, and always comment them very well :). Just my 2ยข -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython Question
I think you are looking for a drag and drop GUI builder? If so then http://wxglade.sourceforge.net/ -- wxglade is what you need. There are some others but this is what I prefer myself. -- http://mail.python.org/mailman/listinfo/python-list
Re: ftplib question
Well I am not too familiar with ftplib but I have done some minimal work. Example: try: server=FTP() server.connect('ftp.mcafee.com', 21) except: print Could not connect to server raw_input(Hit Enter to quit:) sys.exit(0) login = server.login('anonymous', '[EMAIL PROTECTED]') workdir = server.cwd(/pub/datfiles/english) ## Set the current directory server.delete(*.*) End Example: I hope it helps -- http://mail.python.org/mailman/listinfo/python-list
Re: glob and curly brackets
You just need to literlize them with a forward slash. globber = '/home/zhomer/test/{dir1*,dir2*}/{subdir1,subdir2}' globlist = glob.glob(globber) globber = '/home/zhomer/test/\{dir1*,dir2*\}/\{subdir1,subdir2\}' globlist = glob.glob(globber) See if that works for you. -- http://mail.python.org/mailman/listinfo/python-list
Re: wxPython Question
Well you will need to download the docs demos and tools and that contains a windows help file that is easily searchable. If you run Linux there is a Gnome tool to run the help file in Linux if you so wish. -- http://mail.python.org/mailman/listinfo/python-list
Re: cd burning
I am hopeing something has developed myself. I have been waiting awhile. I simply don't want to use cdrecord or cdrdao. If I had the know how I would be working on it but I believe this is a massive undertaking and rather hard to accomplish. I do hope this happens very soon though. Libburn might be of some use to you? I know FreeBSD compiled some binding for python but the main libburn site only seems to officially have ruby binding atm. http://icculus.org/burn/. -- http://mail.python.org/mailman/listinfo/python-list
Re: re.sub problem
Okay I just woke up and haven't had enough coffee so if I'm off here please forgive me. Are you saying that if there is an emptly line then it borks? If so just use re.S ( re.DOTALL ) and that should take care of it. It will treat the ( . ) special. Otherwise it ignores new lines. -- http://mail.python.org/mailman/listinfo/python-list
Re: re.sub problem
Glad I could help. -- http://mail.python.org/mailman/listinfo/python-list
Re: Any wing2.0 users here?
I think it's one of the best myself. I littel laggy on windows but you get use to it. Just my .02 -- http://mail.python.org/mailman/listinfo/python-list
Re: How to use DrPython plugins
Well I think you should post in this forum and you will get your answer more quickly. http://sourceforge.net/forum/?group_id=83074 I'm not sure which version you are using? The developer for DrPython is rather busy right now but someone else there might be able to help you a bit more than me. Have you tried using the period for code completion? That works fine for me. I use alt enter for find and complete. It almost sounds like you should manually remove the plugins you have installed and reinstall them. Did you download the plugins manually or did you use the plugin installer? -- http://mail.python.org/mailman/listinfo/python-list
Re: Try this
Indeed.. I did click reply but I guess I wasn't paying attention. My bad. -- http://mail.python.org/mailman/listinfo/python-list
Try this
I'm not sure I understand your first question but checkout the glob module. Sounds like it may help. Here is how you could get the folders and filenames import os list = os.walk(C:\python24\Tools) for file in list: folderlist = os.path.split(file[0]) print Folder*** print folderlist[1] print = print print Files* print file[2] print = -- http://mail.python.org/mailman/listinfo/python-list
pygtk question
Hopefully someone can help me out here. It's probably super simple but how do you select multiple items in a treeview? I have gtk.SELECTION_MULTIPLE set but of course that was enough. I have tried catching the ctrl button press but still nothing. Perhaps there is a better place to ask but I thought I would give this a shot first. TIA. -- http://mail.python.org/mailman/listinfo/python-list
Easy way to detect hard drives and partitions in Linux
I need a way to detect hard drives and their partitions... labels would be nice too... I did some googling but did not find anything all too useful. This will strictly be on Linux / Unix so any help would be greatly appreciated. TIA -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy way to detect hard drives and partitions in Linux
Jeff Epler wrote: You're not going to find a single portable unix way of doing this. The format of /etc/fstab and /etc/mtab are pretty portable, but they only list mountable/mounted partitions, not all partitions. In addition to the linux possibilities mentioned in another reply, there is also /proc/partitions. Finally, if you only want to recognize FDISK.EXE-type partitions (used by many types of Linux, though that seems to be changing in Fedora Core 4), it shouldn't be hard to write a Python program to read the partition table directly from the disk. The details will be readily available online. Jeff Well thanks for the responses and so quickly. I'm very new to programming and am not afraid to say it. I'll see what I can come up with. at least this is a good start. Thanks. -- http://mail.python.org/mailman/listinfo/python-list