8 from gnucash
import Session, SessionOpenMode
11 uri =
"xml:///tmp/simple_book.gnucash" 14 with Session(uri, SessionOpenMode.SESSION_NEW_STORE)
as ses:
18 book.get_root_account().SetDescription(
"hello, book")
19 print(
"Book is saved:",
not book.session_not_saved())
25 print(
"Book is saved:",
not book.session_not_saved())