Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

PythonScript configuration dialog

If you have a question or need help, this is the place to be.
Post Reply

Do you like the new PythonScript configuration dialog?

Yes.
3
100%
No.
0
No votes
I don't mind.
0
No votes
 
Total votes: 3

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

PythonScript configuration dialog

Post by Bitmonster »

Since the latest versions, all action configuration dialogs have an apply and test button. Since it also seems practical to do a quick "test" of a PythonScript action, I came to the idea to make the configuration of a PythonScript action absolutely identical to all other actions. To see what I mean, I have uploaded an experimental build here:
[EDIT: Link removed. The new feature is now part of the betas.]

It always bothered me a bit, that PythonScript actions were a bit different then other actions. The new approach has its pros and cons:

Pros:
* Uniform look and feel for all actions.
* Test, Apply, Ok and Cancel are obvious reachable.
* The implementation is much easier, as it is coded like all actions.
* The window can't be "forgotten" in the background.
* No need for the boring and mistakable "Apply changes?" dialog, if you close the window with the mouse.

Cons:
* No menu bar, only a context menu. (But there wasn't much menu items, so this should not be a big problem).
* A little more wasteful screen consumption.
* Many windows opened simultaneous is harder to handle.

I would like to hear, what other people think about it.

There are some bugs in the experimental implementation:
* Dialog size and position is not remembered. [FIXED]
* The buttons are not reachable with the keyboard (since tab and enter are needed by the editor). [FIXED. You can now use Ctrl+Tab to tab out of the editor control and also use Ctrl+Return to take the "Ok" action or use some Alt combinations for the other buttons.]

These can be fixed easily, so don't let your impression be ruled by that.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: PythonScript configuration dialog

Post by krambriw »

Hi,
I think this is much better!

Now you feel the editor is something that "belongs" to eg.

I would like to have (it's close to Christmas...)
- a maximize button
- an autosave function like in Visual Studio (if some ugly crasch would happen)
- version handling

Best regards, Walter
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: PythonScript configuration dialog

Post by Bartman »

the window default size is a little small but otherwise i like it.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: PythonScript configuration dialog

Post by Bitmonster »

Well, I think version handling and autosave would be overkill for such an application.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: PythonScript configuration dialog

Post by krambriw »

There are thousands of various opinons. Why I asked for version handling is because it would be nice to stay in the eg environment also when writing scripts. If it doesnt work fine, just skip back to the previous version.

Which leads to more wishes now
- undo and redo buttons, please

Also
- allow window re-sizing

I am fully aware that those functions are provided with other tools like VS, UltraEdit etc etc.

But the idea I suppose is to have an integrated editor that provides value, improves efficiency and is integrated with eg. Otherwise you can just forget it and I will keep on using an external tool

BestR Walter

I can do copy & paste from/to my development tool but I would like to skip it
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: PythonScript configuration dialog

Post by Bitmonster »

You can just use Python's "execfile()" to use an external file inside a PythonScript action, so you don't need to copy&paste.

Undo&redo are part of the context menu.
Resizing was always available.

The new configuration panel is included in the latest betas from now.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Post Reply