mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
21db21b995
commit
78638a28f2
@ -1127,7 +1127,7 @@ class TOCEditor(QDialog): # {{{
|
|||||||
tb = None
|
tb = None
|
||||||
try:
|
try:
|
||||||
self.ebook = get_container(self.pathtobook, log=self.log)
|
self.ebook = get_container(self.pathtobook, log=self.log)
|
||||||
except:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
if self.working:
|
if self.working:
|
||||||
@ -1162,6 +1162,15 @@ class TOCEditor(QDialog): # {{{
|
|||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
def develop():
|
||||||
|
from calibre.gui2 import Application
|
||||||
|
app = Application([])
|
||||||
|
d = TOCEditor(sys.argv[-1])
|
||||||
|
d.start()
|
||||||
|
d.exec()
|
||||||
|
del app
|
||||||
|
|
||||||
|
|
||||||
def main(shm_name=None):
|
def main(shm_name=None):
|
||||||
import json
|
import json
|
||||||
import struct
|
import struct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user