Thread: impfind
View Single Post
Old 10-18-2008, 12:06 AM   #16
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by derrell View Post
There are a couple of GUI tk interface creators like Zooz but I find it easier to just add the code by hand as I build up the interface. One of the major drawbacks of Tk is that as the application gets larger and more complicated you tend to end up with global variables all over the place. There are object oriented solutions to this but I generally end up using hashes for them.
I was hoping you weren't going to say this!

Quote:
Oop and I don't get along well, one of the reasons that I still use perl for most things that I write and haven't really gotten into python where everything is an object.
I hear you loud and clear. Same with ME! When I updated PDFRead's python modules, I got brain freeze; still do. I think like perl is written, not like OOP! That's why my continued interest in writing some perl utilities.

Quote:
Here are a couple of links for some basic Tk info. There are many around the web.
Tk tutorial
Zooz My opion though is that it easier to just code the ui.
Some more advance widgets.
Thanks for these tutorials!

I tried the ActivePerl Tk widget.bat demo and others and all I can say is WOW!!! I've got to learn this (in between ebooks conversions)!

Quote:
Oh and I'm still tinkering with this some but I think I'll be moving to an epub like storage system for my books. Where the book is exploded into an oeb style structure with either mobi2oeb or convert lit then modify the opf file and build an imp with a short windows script that wrote that uses the BookMill com interface.
Mobi2IMP.pl and Lit2sb.pl will do this nicely for you, as a front-ends!

Quote:
From there I can store the imp file and all of the other files in a single zipped archive or possibly bzip2. That will give easy access to the created imp file so it can be copied to my bookshelf or to easily change the metadata in the opf and rebuild the imp. The impfindGUI script will most likely be the starting point with some modules added to handle manipulating the book files.

The sort for the path and the button on the shelf tab shouldn't be hard to add. I'll look at adding that to the what I have and post another version in a couple of days.
Great to hear; another developer to share the "laurels" with!
nrapallo is offline   Reply With Quote