Giter Club home page Giter Club logo

Comments (4)

AndyObtiva avatar AndyObtiva commented on June 7, 2024 1

I reported at the ActiveState Community Forum (not sure where else to report):
https://community.activestate.com/t/tk-text-tag-bind-issue-with-activetcl-8-6-occurs-when-using-tk-in-both-ruby-and-python/7665

from tk.

AndyObtiva avatar AndyObtiva commented on June 7, 2024

OK, good news! It is not Ruby's fault! I recreated the same exact problem with Python and TKinter:

from tkinter import *
from tkinter import ttk

root = Tk()

text = Text(root)
text.grid()
text.insert('1.0', "Some giberish\nMore giberish\nNot well spelled giberish")
text.tag_add('all', '1.0', 'end')
def print_info(event):
  print('key press')
  print(event)
  
text.tag_bind('all', '<KeyPress>', print_info)

root.mainloop()

from tk.

jeremyevans avatar jeremyevans commented on June 7, 2024

I tried your example ruby program and can reproduce the issue using tk-8.5.19 on OpenBSD. So it doesn't appear to be specific to ActiveState's distribution, it's probably an issue in tk itself.

Since this doesn't appear to be a bug in ruby-tk, I'm going to close this now.

from tk.

AndyObtiva avatar AndyObtiva commented on June 7, 2024

For those who may be interested to know, I would like to note that I reported this as an official Tcl/Tk issue: https://core.tcl-lang.org/tk/tktview/631a0b2d95b8426a8851829b16a9d77b9f79b03e

from tk.

Related Issues (20)

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.