Using TK and the canvas.

2009-02-10 Thread Kalibr
Hi all. I'm experimenting with making a UI for a little (well, not quite) script that basically draws up a tech tree to some skills from my favorite game. What I'm aiming for looks a little like this site here:(apologies if I'm not supposed to direct link)

Re: Using TK and the canvas.

2009-02-10 Thread Kalibr
On Feb 11, 5:51 am, r rt8...@gmail.com wrote: On Feb 10, 1:27 pm, Kalibr space.captain.f...@gmail.com wrote: [snip] You should really check out wxPython, there is support for just this type of thing. of course you could do this with Tkinter, but just thinking about it makes my head hurt

Re: Dynamically naming objects.

2008-06-07 Thread Kalibr
Thanks for all this info. I'll try all your scripts out. from what you guys have said, I did the following: I set up a 'computer class' (I'lm leaving out the mutators) class computer: def __init__(self, IP, owner, ph_connections, connections): assert isIP(IP) == True

Re: Dynamically naming objects.

2008-06-07 Thread Kalibr
On Jun 8, 2:58 am, Hans Nowak [EMAIL PROTECTED] wrote: Kalibr wrote: On Jun 7, 1:20 pm, Hans Nowak [EMAIL PROTECTED] wrote: Kalibr wrote: I've been developing a small script to fiddle with classes, and came accross the following problem. Assuming I get some user input asking

Dynamically naming objects.

2008-06-06 Thread Kalibr
I've been developing a small script to fiddle with classes, and came accross the following problem. Assuming I get some user input asking for a number, how would I spawn 'n' objects from a class? i.e. I have a class class 'user' and I don't know how many of them I want to spawn. Any ideas? --

Re: Dynamically naming objects.

2008-06-06 Thread Kalibr
On Jun 7, 1:20 pm, Hans Nowak [EMAIL PROTECTED] wrote: Kalibr wrote: I've been developing a small script to fiddle with classes, and came accross the following problem. Assuming I get some user input asking for a number, how would I spawn 'n' objects from a class? i.e. I have a class

Re: Finding file details...

2008-05-30 Thread Kalibr
On May 30, 3:03 pm, Kam-Hung Soh [EMAIL PROTECTED] wrote: Kalibr wrote: On May 30, 1:41 am, Roger Upole [EMAIL PROTECTED] wrote: You can use the shell COM objects to access media properties as shown by Explorer. import win32com.client sh=win32com.client.Dispatch('Shell.Application

Finding file details...

2008-05-29 Thread Kalibr
I've been trying to figure out how to find the details of files (specifically music for now) for a little sorting script I'm making, My aim is to get details on the artist, album, and genre for mp3 and wma files (possibly more in the future). My closest match was when I stumbled accross PyMedia,

Re: Compare 2 files and discard common lines

2008-05-29 Thread Kalibr
On May 29, 6:36 pm, loial [EMAIL PROTECTED] wrote: I have a requirement to compare 2 text files and write to a 3rd file only those lines that appear in the 2nd file but not in the 1st file. Rather than re-invent the wheel I am wondering if anyone has written anything already? You can use the

Re: Finding file details...

2008-05-29 Thread Kalibr
On May 29, 7:55 pm, Tim Golden [EMAIL PROTECTED] wrote: You don't say, but I assume you're on Windows since you mention GetFileVersionInfo (which doesn't have anything to do with media files, by the way) and WMA. There may be packages out there to do all this already but if not you'll need to

Re: Finding file details...

2008-05-29 Thread Kalibr
On May 30, 1:41 am, Roger Upole [EMAIL PROTECTED] wrote: You can use the shell COM objects to access media properties as shown by Explorer. import win32com.client sh=win32com.client.Dispatch('Shell.Application') folder= r'M:\Music\Bob Dylan\Highway 61 Revisited' ns=sh.NameSpace(folder)