Please post the code of your macro or provide steps to
reproduce the erroneous behaviour with one of the stock
macros (i.e. Browse Repository folders, Recursive Add or
Extended Add).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have attached a macro to reproduce the erroneous
behavior. But i guess you could use any TK/Python macro.
When first one has been loaded, all subsequent TK/Python
macros will open out of focus within the same WinCVS
process.
1: Install the macro
2: Open WinCVS
3: Call the macro from the macro menu
4: Verify that the macro is in focus
5: Close the macro
6: Recall the macro from the macro menu
7: Verify that the macro is no longer in focus when called
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I could reproduce this now. I don't see it as much of an
issue though unless you intend to operate the macro by
keyboard input. After all, while the macro window is indeed
not focused initially it is still in front of the WinCvs
window and thus the difference between "correct" and
"incorrect" behaviour basically boils down to a different
color of the title bar. Or is that not what is happening for
you? I will check back with Alex anyway if there's anything
he could do on the WinCvs end of things.
Anyway, please do take a look at the existing Tk macros.
Your use of Tk is unsafe and might result in breakage of
existing TCL macros (which might not be an issue to you
particularly but makes the macro unsuitable for
redistribution). Therefore it is recommended to make use of
the cvsgui.SafeTk module.
BTW: Instead of manipulating sys.argv, you should use the
keyword argument baseName when instantiating the Tk object,
e.g.: root = Tk(baseName='dummy')
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=158827
Please post the code of your macro or provide steps to
reproduce the erroneous behaviour with one of the stock
macros (i.e. Browse Repository folders, Recursive Add or
Extended Add).
Logged In: YES
user_id=1134156
I have attached a macro to reproduce the erroneous
behavior. But i guess you could use any TK/Python macro.
When first one has been loaded, all subsequent TK/Python
macros will open out of focus within the same WinCVS
process.
1: Install the macro
2: Open WinCVS
3: Call the macro from the macro menu
4: Verify that the macro is in focus
5: Close the macro
6: Recall the macro from the macro menu
7: Verify that the macro is no longer in focus when called
Tk/Python Test Macro
Logged In: YES
user_id=158827
OK, I could reproduce this now. I don't see it as much of an
issue though unless you intend to operate the macro by
keyboard input. After all, while the macro window is indeed
not focused initially it is still in front of the WinCvs
window and thus the difference between "correct" and
"incorrect" behaviour basically boils down to a different
color of the title bar. Or is that not what is happening for
you? I will check back with Alex anyway if there's anything
he could do on the WinCvs end of things.
Anyway, please do take a look at the existing Tk macros.
Your use of Tk is unsafe and might result in breakage of
existing TCL macros (which might not be an issue to you
particularly but makes the macro unsuitable for
redistribution). Therefore it is recommended to make use of
the cvsgui.SafeTk module.
BTW: Instead of manipulating sys.argv, you should use the
keyword argument baseName when instantiating the Tk object,
e.g.: root = Tk(baseName='dummy')