Jump to content

Script Editor related pickings


hendrik
 Share

Recommended Posts

Some things I have noticed in script editor:

  • when autocomplete offers completion string and I accidentally type a lowercase character (that is the same as in string with different case), autocomplete will concatenate whole string, not just the part needed. For example, typing PythonQtd will offer PythonQtDebugAPI, but pressing enter results in concatenated wrong string: PythonQtdPythonQtDebugAPI
  • for convenience: commands like print etc could use different, lighter color schema for syntax highlight, they are very hard to read on dark gray background;
  • for convenience: when typing a command and autocomplete offers something, pressing tab could also apply the completion, currently only enter works.

Regarding Qt access, it seems to me that not everything in QtCore and QtGui libraries are accessible from script editor, only a small subseet is presented. I have looked for PythonQt (which I believe is used for adding python support here), it is not accessible at all. Qt, QtCore, QtGui modules seem to only present a few select classes. Is there a reason for this?

Link to comment
Share on other sites

On 6/19/2019 at 12:24 PM, hendrik said:

when autocomplete offers completion string and I accidentally type a lowercase character (that is the same as in string with different case), autocomplete will concatenate whole string, not just the part needed. For example, typing PythonQtd will offer PythonQtDebugAPI, but pressing enter results in concatenated wrong string: PythonQtdPythonQtDebugAPI

It is a bug. we will fix it. thanks for reporting it!

On 6/19/2019 at 12:24 PM, hendrik said:

for convenience: commands like print etc could use different, lighter color schema for syntax highlight, they are very hard to read on dark gray background;

Roger that, we will change it for next beta

On 6/19/2019 at 12:24 PM, hendrik said:

for convenience: when typing a command and autocomplete offers something, pressing tab could also apply the completion, currently only enter works

That could interfere with other focus management events in the app. let us check if we can do that easily.

On 6/19/2019 at 12:24 PM, hendrik said:

Regarding Qt access, it seems to me that not everything in QtCore and QtGui libraries are accessible from script editor, only a small subseet is presented. I have looked for PythonQt (which I believe is used for adding python support here), it is not accessible at all. Qt, QtCore, QtGui modules seem to only present a few select classes. Is there a reason for this?

import Mistika

it has 3 modules for Qt:

  • Mistika.Qt
  • Mistika.QtCore
  • Mistika.QtGui

that should give you access to all the functionality.

if you miss anything, let us know

 

Link to comment
Share on other sites

On 6/20/2019 at 3:49 PM, Miguel Angel Doncel said:

import Mistika

it has 3 modules for Qt:

  • Mistika.Qt
  • Mistika.QtCore
  • Mistika.QtGui

that should give you access to all the functionality.

if you miss anything, let us know

Except that from for example QtGui I get only ~20 entries in its dir, but in reality QtGui module includes hundreds of items. So I'd say almost all of them are missing: https://www.riverbankcomputing.com/static/Docs/PyQt4/qtgui.html

Link to comment
Share on other sites

On 6/25/2019 at 6:45 AM, hendrik said:

Except that from for example QtGui I get only ~20 entries in its dir, but in reality QtGui module includes hundreds of items. So I'd say almost all of them are missing: https://www.riverbankcomputing.com/static/Docs/PyQt4/qtgui.html

You are right Hendrik, we did not realize until now many of the classes are missing. I is probably a bug. please let us check it

Link to comment
Share on other sites

On 6/25/2019 at 6:45 AM, hendrik said:

Except that from for example QtGui I get only ~20 entries in its dir, but in reality QtGui module includes hundreds of items. So I'd say almost all of them are missing: https://www.riverbankcomputing.com/static/Docs/PyQt4/qtgui.html

Ok, yes it was a bug in our code. it is fixed for the coming Beta. Thanks for reporting it Hendrik. You should find a lot more Qt modules on it

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.