germine.blogg.se

Kindlebook
Kindlebook






kindlebook

# now disable the button to prevent multiple launches # actually ready to run the subprocess and get its output Parent = None, title = 'Select Alternative File',ĭefaultextension = '.prc', filetypes =[( 'Kindle Info', '.info'),Īltinfopath = os. Parent = None, title = 'Directory to Store Unencrypted file(s) into', Parent = None, title = 'Select Kindle/Mobi/Topaz eBook File',ĭefaultextension = '.prc', filetypes =) P2 = Process( cmdline, shell = True, bufsize = 1, stdin = None, stdout = PIPE, stderr = PIPE, close_fds = False) lib/' + tool + ' ' + pidoption + seroption + infooption + '"' + infile + '" "' + outfile + '"'Ĭmdline = 'python lib \\' + tool + ' ' + pidoption + seroption + infooption + '"' + infile + '" "' + outfile + '"'Ĭmdline = 'lib \\' + tool + ' ' + pidoption + seroption + infooption + '"' + infile + '" "' + outfile + '"'Ĭmdline = cmdline. Infooption = ' -k "' + altinfopath + '" 'Ĭmdline = 'python. # run as a subprocess via pipes and collect stdoutĭef mobirdr( self, infile, outfile, altinfopath, pidnums, sernums):

kindlebook

# post output from subprocess in scrolled text widget # make sure we get invoked again by event loop after interval Msg = text + ' \n \n' + 'Input File was Not Encrypted - No Output File Needed \n' Msg = text + ' \n \n' + 'Error: Encryption Removal Failed \n' Msg = text + ' \n \n' + 'Encryption successfully removed \n' # option being used, so need to reset it for the next time # invoked every interval via the widget "after"

kindlebook

# read from subprocess pipe without blocking LEFT)īuttons, text = "Quit", width = 10, command = self. END, msg1)īuttons, text = "Start", width = 10, command = self. grid( row = 6, column = 0, columnspan = 2, sticky = sticky) RIDGE, height = 15, width = 60, wrap = Tkconstants. stext = ScrolledText( body, bd = 5, relief = Tkconstants. grid( row = 4, column = 1, sticky = sticky) Entry( body, width = 50, textvariable = self. Label( body, text = 'Optional Comma Separated List of 16 Character Kindle Serial Numbers (no spaces)'). grid( row = 3, column = 1, sticky = sticky) Label( body, text = 'Optional Comma Separated List of 10 Character PIDs (no spaces)'). Button( body, text = ".", command = self. grid( row = 2, column = 1, sticky = sticky)īutton = Tkinter. Label( body, text = 'Optional Alternative file'). grid( row = 1, column = 1, sticky = sticky)īutton = Tkinter. Label( body, text = 'Directory for the Unencrypted Output File(s)').

kindlebook

grid( row = 0, column = 1, sticky = sticky)īutton = Tkinter. Label( body, text = 'Kindle/Mobi/Topaz eBook input file'). Label( self, text = 'Remove Encryption from a Kindle/Mobi/Topaz eBook') # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtabįrom scrolltextwidget import ScrolledTextįrom subprocess import Popen, PIPE, STDOUT








Kindlebook