GithubHelp home page GithubHelp logo

rjackson6 / tksqla Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 64 KB

The corresponding code from the Tk and SQLAlchemy series on heavymetalcoding.com

License: GNU Affero General Public License v3.0

Python 99.07% Mako 0.93%

tksqla's Introduction

TKSQLA

A Small App for Learning the Finer Points of tkinter and SQLAlchemy

Overview

This is the source code that accompanies the blog series "Tk and SQLAlchemy" at https://heavymetalcoding.com. It was authored and developed because the author was frustrated with the lack of practical documentation and examples for either library.

This package is updated regularly as the series is being written. Primarily, it uses the subject matter of cars. As the title implies, it uses SQLAlchemy to interact with a SQLite database (including validators for stricter typing), and tkinter for a GUI. The root Tk() instance acts as the controller - or at least, tries to, to the best of the author's ability.

tksqla's People

Contributors

rjackson6 avatar

Watchers

 avatar  avatar

Forkers

actuarial-tools

tksqla's Issues

Running the code

Hello,
I am a bit ashamed to even ask this, but after spending multiple hours reading your blog and looking at code, I can't even start it. I began looking at the initial commits:

commit 059e680e9c77f1e7790c89def87e04e69b95c9b7
Author: Ryan Jackson <[email protected]>
Date:   Tue Mar 17 01:35:06 2020 -0400

    major refactor for widgets; combobox validation and auto-complete; started changing gui forms to use new field class

[...]
commit 73d158cae7188fa372e3626748a2644de9a8fbd4 (old-state)
Author: Ryan Jackson <[email protected]>
Date:   Mon Mar 16 03:15:25 2020 -0400

    init

to follow code, but I am lost. I am aware of the tksqla/console/startup.py script, but still, I can't understand what I have to pass to the Application for it to build/access the SQL database.

If I run the tksqla.py script and press the Add Vehicle Trim button, this is the error I get:

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
(Background on this error at: http://sqlalche.me/e/13/e3q8)

Thanks for any suggestions/direction,
Teo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.