Giter Site home page Giter Site logo

Comments (1)

Blargian avatar Blargian commented on May 28, 2024

Made a little bit of progress the past few days. Indeed I was able to use a kind of cheap knock off of the observable pattern to pass the data between WordHandler and Layout classes.

image

I am using Entry widgets (so it is editable) inside of the canvas to display the data. Next step would be to store any changes made to the table text to the database.

Have one issue now where the table gets hidden in the canvas. Fixed it with a small gimmic for now by adding +65 offset

def drawEntry(self,textToDraw,x,y,width): text = tk.StringVar() entry = tk.Entry(self.table_frame,text=text) text.set(textToDraw) self.table_frame.create_window(x+65,y,window=entry)

I will need to have the ability to redraw individual cells instead of redrawing the entire thing each time an entry is made so going to need to think of a more sophisticated way to keep track of rows and the data. Taking inspiration from the TkinterTable library I will make a Table class and a seperate Table Model class. The table class will then just reference the data from the model so that the rows and columns are separated out from the data.

from ankiadder.

Related Issues (5)

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.