Git Product home page Git Product logo

Comments (6)

wbsoft avatar wbsoft commented on June 4, 2024

Can you report if the error has gone away? Thanks!

from frescobaldi.

igneus avatar igneus commented on June 4, 2024

Now Frescobaldi still crashes on startup, but due to some other problem:

File "./frescobaldi", line 3, in
import frescobaldi_app.main
File "/home/igneus/apps/frescobaldi/frescobaldi_app/main.py", line 138, in
main()
File "/home/igneus/apps/frescobaldi/frescobaldi_app/main.py", line 119, in main
win = mainwindow.MainWindow()
File "/home/igneus/apps/frescobaldi/frescobaldi_app/mainwindow.py", line 110, in init
self.createMenus()
File "/home/igneus/apps/frescobaldi/frescobaldi_app/mainwindow.py", line 777, in createMenus
menu.createMenus(self)
File "/home/igneus/apps/frescobaldi/frescobaldi_app/menu.py", line 66, in createMenus
m.addMenu(f(mainwindow))
File "/home/igneus/apps/frescobaldi/frescobaldi_app/menu.py", line 224, in menu_tools
m.addMenu(menu_tools_pitch(mainwindow))
File "/home/igneus/apps/frescobaldi/frescobaldi_app/menu.py", line 251, in menu_tools_pitch
ac = pitch.Pitch.instance(mainwindow).actionCollection
File "/home/igneus/apps/frescobaldi/frescobaldi_app/plugin.py", line 85, in instance
result.init(obj)
File "/home/igneus/apps/frescobaldi/frescobaldi_app/pitch/init.py", line 48, in init
qutil.addAccelerators(m.actions())
File "/home/igneus/apps/frescobaldi/frescobaldi_app/qutil.py", line 123, in addAccelerators
for prio, pos, accel in source:
File "/home/igneus/apps/frescobaldi/frescobaldi_app/qutil.py", line 113, in find
for prio, matches in finditers(action):
File "/home/igneus/apps/frescobaldi/frescobaldi_app/qutil.py", line 103, in finditers
if isinstance(action, QAction) and len(action.shortcut()) > 0:
TypeError: object of type 'QKeySequence' has no len()

from frescobaldi.

wbsoft avatar wbsoft commented on June 4, 2024

Many thanks for your testing help. It seems PyQt4.7 has not the advanced handling of QKeySequence objects PyQt4.8 and 4.9 have. But it is my intention to keep F2 compatible with PyQt4.7 so this must be fixed.

from frescobaldi.

wbsoft avatar wbsoft commented on June 4, 2024

Does it work correctly now? The method in question does a rather nice thing: it gives a keyboard accelerator to a menu action (by underlining that character in the menu command text. And while doing that it also looks to the keyboard shortcut of the command. So if the command is "LilyPond Version" and the keyboard shortcut is "Ctrl+V", it will prefer to underline the "V" in the menu command: "LilyPond _Version". Which makes for logically chosen menu command accelerator keys.

from frescobaldi.

igneus avatar igneus commented on June 4, 2024

Yes, yes! :)
It works now. Thank you very much.

from frescobaldi.

wbsoft avatar wbsoft commented on June 4, 2024

thank YOU!

from frescobaldi.

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.