brendanbd (Brendan Barnacle Duck)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Friday

  • Clear sailing ahead.

User Details

User Since
Dec 13 2017, 5:31 AM (384 w, 12 h)
Availability
Available

Recent Activity

Jul 8 2020

brendanbd added a comment to T13377: Draft of Python plugins acceptance policy.

Notes:
PEP compliance discussion: https://phabricator.kde.org/T6588

Jul 8 2020, 12:42 AM · Krita

Dec 29 2018

brendanbd triaged T10235: create or identify developer style guides, namespaces as Wishlist priority.
Dec 29 2018, 10:05 AM · Krita

Jun 10 2018

brendanbd closed D13455: Update KSS to use new per-window createActions structure.

Forgot to reference this in the commit :(
347e631531eb

Jun 10 2018, 12:51 PM · Krita

Jun 9 2018

brendanbd requested review of D13455: Update KSS to use new per-window createActions structure.
Jun 9 2018, 11:16 PM · Krita

Mar 29 2018

brendanbd updated the diff for D11275: Add Script Starter script.

Update to diff - add some documentation, update cmakelists.txt

Mar 29 2018, 8:47 PM · Krita

Mar 13 2018

brendanbd added a comment to D11275: Add Script Starter script.

BTW If the ui file is in the same directory as the script it will run from the command line. So you can run it stand alone to test.

Mar 13 2018, 10:36 PM · Krita
alvinhochun awarded D11275: Add Script Starter script a Like token.
Mar 13 2018, 2:36 AM · Krita
brendanbd requested review of D11275: Add Script Starter script.
Mar 13 2018, 2:26 AM · Krita

Feb 24 2018

brendanbd added a comment to T1625: Python Scripting.

"The user's resource directory is fixed on each different OS. Settings/Manage Resources/Open Resource folder will always take you there."

Feb 24 2018, 2:16 AM · Krita: Next Features (Needs Documentation)

Feb 23 2018

brendanbd added a comment to T1625: Python Scripting.

So, what's the story with PyQt5 - if you get the Windows build or the linux app image it's bundled into the package?
But if you build from source (and presumably for package management users) you have to have it installed as a dependency to run the scripts?

Feb 23 2018, 12:58 AM · Krita: Next Features (Needs Documentation)

Feb 21 2018

brendanbd added a comment to T1625: Python Scripting.

I think I can harvest QIcons from existing widgets. I was more wondering whether there was some sort of icon resource where I could find them more easily.
Accoding to the console if I try Krita.icon("name") it can't find it but falls back on QIcon::FromTheme("name")

Feb 21 2018, 11:07 AM · Krita: Next Features (Needs Documentation)

Feb 9 2018

brendanbd closed D10401: Add Save As action to Scripter file menu.

https://phabricator.kde.org/R37:28547a852ee98330ef2a985b7b74594854623e0b

Feb 9 2018, 11:13 AM · Krita
brendanbd closed D10285: Execute scripter scripts in namespace "__main__".

https://phabricator.kde.org/R37:6dad1dd2ca67a442ff397e8135e0c26cfc9e8cb7

Feb 9 2018, 10:28 AM · Krita
brendanbd updated the summary of D10401: Add Save As action to Scripter file menu.
Feb 9 2018, 6:08 AM · Krita
brendanbd added a task to D10401: Add Save As action to Scripter file menu: T7627: Generic Scripter UI improvements task.
Feb 9 2018, 6:07 AM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D10401: Add Save As action to Scripter file menu.
Feb 9 2018, 6:07 AM · Krita
brendanbd requested review of D10401: Add Save As action to Scripter file menu.
Feb 9 2018, 6:07 AM · Krita

Feb 7 2018

brendanbd added a comment to D10285: Execute scripter scripts in namespace "__main__".

A user can test for whether or not they can import krita to determine whether they are executing in krita's context I guess.

Feb 7 2018, 11:29 AM · Krita
brendanbd added a task to D10285: Execute scripter scripts in namespace "__main__": T7627: Generic Scripter UI improvements task.
Feb 7 2018, 11:28 AM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D10285: Execute scripter scripts in namespace "__main__".
Feb 7 2018, 11:28 AM · Krita

Feb 4 2018

brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:53 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:50 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:50 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:49 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:47 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:45 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:43 AM · Krita
brendanbd updated the summary of D10285: Execute scripter scripts in namespace "__main__".
Feb 4 2018, 12:40 AM · Krita

Jan 29 2018

brendanbd added a comment to T6588: Define Python scripting guidelines.

N802 is lower case function names - will need to be ignored
The sample scripts will not pass PEP8 requirements.

Jan 29 2018, 1:28 PM · Krita

Jan 28 2018

brendanbd added a task to D10133: Scripter - remove magic numbers, increase initial window width : T7627: Generic Scripter UI improvements task.
Jan 28 2018, 7:50 AM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D10133: Scripter - remove magic numbers, increase initial window width .
Jan 28 2018, 7:50 AM · Krita
brendanbd added a comment to D10133: Scripter - remove magic numbers, increase initial window width .

I had thought about doing it as a setting that stored the previous size (perhaps geometry) of the scripter window as at close. Anything else would require a line entry in the settings dialog => new strings in any event.
I need to work out how the Krita settings work first.

Jan 28 2018, 7:50 AM · Krita

Jan 27 2018

brendanbd added a comment to D10133: Scripter - remove magic numbers, increase initial window width .

Agreed. This was faster.

Jan 27 2018, 10:57 AM · Krita

Jan 26 2018

brendanbd abandoned D9541: Add toggle comment functionality to scripter - fix null line bug.

https://phabricator.kde.org/R37:bec0891da4edc684a0b2aa659a946cf813a04ec7

Jan 26 2018, 6:51 AM · Krita
brendanbd abandoned D9992: Add toggle comment functionality to scripter - fix first line bug.

https://phabricator.kde.org/R37:bec0891da4edc684a0b2aa659a946cf813a04ec7

Jan 26 2018, 6:50 AM

Jan 25 2018

brendanbd closed D9530: Updates to scripter/uiscripter/tabwidgets/outputwidget/outputtextedit.py - Make output area use a monospace font.
Jan 25 2018, 10:34 PM · Krita
brendanbd abandoned D9527: Updates to uiscripter/actions/runaction - minor clean ups.

Addressed in:
https://phabricator.kde.org/D9317

Jan 25 2018, 11:48 AM · Krita
brendanbd updated the diff for D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .

Removed magic string "users_script"
Consolidated https://phabricator.kde.org/D9527 - ie remove unused imports, exec compiled object code

Jan 25 2018, 6:41 AM · Krita

Jan 24 2018

brendanbd added a comment to T1625: Python Scripting.

Is there a way to access the button bitmaps from Python? For example, if I want to put an undo button in a docker can I get a copy of the undo bitmap to apply it to the button?

Jan 24 2018, 1:30 PM · Krita: Next Features (Needs Documentation)
brendanbd updated the test plan for D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .
Jan 24 2018, 1:03 PM · Krita
brendanbd added a comment to D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .

So, I don't have to stick to exactly what I've put in the revision?
For example, the commenting code had a couple of bugs in it, some of which have been approved and some of which haven't. Can I just push the code as debugged?

Jan 24 2018, 1:00 PM · Krita
brendanbd added a comment to D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .

I have organised the developer access but am not sure what now? Are changes pushed separately through git, quoting this review?

Jan 24 2018, 12:22 PM · Krita

Jan 23 2018

brendanbd added a comment to T1625: Python Scripting.

I am not sure how to implement tests for Python plugins. The plugins rely on the Krita environment. Does Krita have a headless mode?

Jan 23 2018, 8:11 PM · Krita: Next Features (Needs Documentation)
brendanbd added a comment to D9992: Add toggle comment functionality to scripter - fix first line bug.

Hmmmm...
I was losing track of what local commit matched what diff.

Jan 23 2018, 12:53 PM

Jan 22 2018

brendanbd added a comment to T7665: Krita 4.0 manual head tasks..

I did some edits to the intro para of one of those pages.

Jan 22 2018, 1:02 PM · Krita: Manual

Jan 20 2018

brendanbd added a task to D9992: Add toggle comment functionality to scripter - fix first line bug: T7627: Generic Scripter UI improvements task.
Jan 20 2018, 12:45 PM
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9992: Add toggle comment functionality to scripter - fix first line bug.
Jan 20 2018, 12:45 PM · Krita

Jan 16 2018

brendanbd added a comment to T7665: Krita 4.0 manual head tasks..

For things (like resources) where you need to already know the resource type in order to get the resources include a list of what strings will work.

Jan 16 2018, 5:29 AM · Krita: Manual
brendanbd added a comment to T7665: Krita 4.0 manual head tasks..

On both pages
python -> Python
Me editing a comment
woohoo!

Jan 16 2018, 5:27 AM · Krita: Manual
brendanbd added a comment to D9541: Add toggle comment functionality to scripter - fix null line bug.

There seems to be another bug when commenting the first line of a script. I need to fix.

Jan 16 2018, 4:00 AM · Krita
brendanbd added a comment to T7665: Krita 4.0 manual head tasks..

on https://docs.krita.org/How_to_make_a_Krita_Python_plugin

Jan 16 2018, 3:58 AM · Krita: Manual
brendanbd added a comment to T7665: Krita 4.0 manual head tasks..

on https://docs.krita.org/Introduction_to_Python_Scripting

Jan 16 2018, 3:47 AM · Krita: Manual

Jan 4 2018

brendanbd updated the diff for D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .

Earlier diff was too complicated.
More succinct code attached. Should work under Python 3.3 and Python 3.4
Patched as against git b37324dc77

Jan 4 2018, 1:10 PM · Krita

Dec 28 2017

brendanbd updated the summary of D9541: Add toggle comment functionality to scripter - fix null line bug.
Dec 28 2017, 9:29 PM · Krita
brendanbd added a task to D9541: Add toggle comment functionality to scripter - fix null line bug: T7627: Generic Scripter UI improvements task.
Dec 28 2017, 9:27 PM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9541: Add toggle comment functionality to scripter - fix null line bug.
Dec 28 2017, 9:27 PM · Krita
brendanbd added a task to D9531: Updates to uiscripter/actions/runaction - display exception information in output window, provide more context (eg line number, text, offset for syntax errors): T7627: Generic Scripter UI improvements task.
Dec 28 2017, 1:11 PM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9531: Updates to uiscripter/actions/runaction - display exception information in output window, provide more context (eg line number, text, offset for syntax errors).
Dec 28 2017, 1:10 PM · Krita
brendanbd updated the summary of D9531: Updates to uiscripter/actions/runaction - display exception information in output window, provide more context (eg line number, text, offset for syntax errors).
Dec 28 2017, 1:10 PM · Krita
brendanbd updated the summary of D9530: Updates to scripter/uiscripter/tabwidgets/outputwidget/outputtextedit.py - Make output area use a monospace font.
Dec 28 2017, 12:35 PM · Krita
brendanbd added a task to D9530: Updates to scripter/uiscripter/tabwidgets/outputwidget/outputtextedit.py - Make output area use a monospace font: T7627: Generic Scripter UI improvements task.
Dec 28 2017, 12:32 PM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9530: Updates to scripter/uiscripter/tabwidgets/outputwidget/outputtextedit.py - Make output area use a monospace font.
Dec 28 2017, 12:32 PM · Krita
brendanbd retitled D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems from Updates to uiscripter/actions/runaction - to Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .
Dec 28 2017, 12:00 PM · Krita
brendanbd added a task to D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems : T7627: Generic Scripter UI improvements task.
Dec 28 2017, 11:55 AM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9529: Updates to uiscripter/actions/runaction - enable scripter to run on Python 3.4 systems .
Dec 28 2017, 11:55 AM · Krita
brendanbd added a task to D9527: Updates to uiscripter/actions/runaction - minor clean ups: T7627: Generic Scripter UI improvements task.
Dec 28 2017, 11:00 AM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9527: Updates to uiscripter/actions/runaction - minor clean ups.
Dec 28 2017, 11:00 AM · Krita
brendanbd added a comment to T6588: Define Python scripting guidelines.

There should be guidelines about where scripts ought to persist their data.

Good point. Do you have any actual use-cases in mind?

Dec 28 2017, 4:35 AM · Krita

Dec 27 2017

brendanbd added a comment to T6588: Define Python scripting guidelines.

As it turns out, the coding style will be inconsistent either way.
If you choose Qt style, then references to the Python standard library will be inconsistent and vice versa.

Dec 27 2017, 10:33 AM · Krita

Dec 20 2017

brendanbd added a comment to T6588: Define Python scripting guidelines.

You should also think about how scripts are distributed and installed. Will any scripts be hosted on phabricator for example? How do people install scripts? How should scripts be packaged?

Dec 20 2017, 11:36 PM · Krita
brendanbd added a comment to T6588: Define Python scripting guidelines.

I have assumed that you want to conform to C++ variableName style, ugly as it is.
There should be guidelines about where scripts ought to persist their data.
I also think there should be thought given to how scripts are listed in menus the flat tools-scripts structure could quickly run out of space.

Dec 20 2017, 11:16 PM · Krita
brendanbd added a comment to T7627: Generic Scripter UI improvements task.

I have worked out how to do a consolidated diff against master if anyone wants these revisions as one consolidated revision

Dec 20 2017, 11:11 PM · Krita
brendanbd added a revision to T7627: Generic Scripter UI improvements task: D9445: Generic Scripter UI improvements task - Add auto-indent to scripter editor.
Dec 20 2017, 11:03 PM · Krita
brendanbd added a task to D9445: Generic Scripter UI improvements task - Add auto-indent to scripter editor: T7627: Generic Scripter UI improvements task.
Dec 20 2017, 11:03 PM · Krita
brendanbd created D9445: Generic Scripter UI improvements task - Add auto-indent to scripter editor.
Dec 20 2017, 11:00 PM · Krita
brendanbd added a comment to T7627: Generic Scripter UI improvements task.

Oh, thanks. Done
Not sure that's working though.
I have ended up with diffs that are cross dependent over two revisions. :(

Dec 20 2017, 12:18 PM · Krita
brendanbd added revisions to T7627: Generic Scripter UI improvements task: D9419: Add indent/dedent to python editor in scripter, D9430: Add toggle comment functionality to scripter.
Dec 20 2017, 12:17 PM · Krita
brendanbd added a task to D9430: Add toggle comment functionality to scripter: T7627: Generic Scripter UI improvements task.
Dec 20 2017, 12:17 PM · Krita
brendanbd added a task to D9419: Add indent/dedent to python editor in scripter: T7627: Generic Scripter UI improvements task.
Dec 20 2017, 12:17 PM · Krita
brendanbd updated the diff for D9419: Add indent/dedent to python editor in scripter.

Previous patch introduced bug - pressing tab in the middle of text when there is no selection inserted whitespace in the middle of the code.
This checks that the cursor is at the end of the text block before inserting spaces

Dec 20 2017, 12:00 PM · Krita
brendanbd updated the test plan for D9419: Add indent/dedent to python editor in scripter.
Dec 20 2017, 11:53 AM · Krita
brendanbd created D9430: Add toggle comment functionality to scripter.
Dec 20 2017, 11:31 AM · Krita
brendanbd added a comment to T7627: Generic Scripter UI improvements task.

Hmmm.... This doesn't really allow me to lodge diffs...

Dec 20 2017, 11:19 AM · Krita
brendanbd created T7627: Generic Scripter UI improvements task.
Dec 20 2017, 11:16 AM · Krita
brendanbd updated the diff for D9419: Add indent/dedent to python editor in scripter.

Additional changes to allow case:
press return, tab to indent, start code

Dec 20 2017, 8:15 AM · Krita
brendanbd added a comment to D9419: Add indent/dedent to python editor in scripter.

Actually, this has a UI issue for when there is no selection. Will update.

Dec 20 2017, 7:56 AM · Krita
brendanbd added a reviewer for D9419: Add indent/dedent to python editor in scripter: Krita.
Dec 20 2017, 6:09 AM · Krita
brendanbd added a comment to D9419: Add indent/dedent to python editor in scripter.

I have added tab/shift tab functionality for the python-editor in scripter.
Not sure whether I am supposed to also open an issue in the bug tracker.
I am thinking of other ui improvements to the editor that may affect this file. Am not sure what I'm supposed to do to handle this conflict if it arises. What do I diff against?

Dec 20 2017, 6:07 AM · Krita
brendanbd created D9419: Add indent/dedent to python editor in scripter.
Dec 20 2017, 6:01 AM · Krita

Dec 13 2017

brendanbd created D9317: Update scripter to allow running of scripts without a main() function.
Dec 13 2017, 8:56 PM · Krita