This commit is contained in:
2020-10-12 18:03:27 +02:00
parent 1a6056e8b7
commit 88990832f1
33 changed files with 5872 additions and 167 deletions

17
script/test/TestTab.py Normal file
View File

@@ -0,0 +1,17 @@
import ch.psi.utils.swing.TextEditor as TextEditor
import ch.psi.pshell.ui.App as App
title="CXXC3"
editor = TextEditor();
tabpane = App.getInstance().getMainFrame().getLeftTab();
App.getInstance().getMainFrame().openComponent(title, editor, tabpane)
for i in range(App.getInstance().getMainFrame().getLeftTab().getTabCount()):
t=App.getInstance().getMainFrame().getLeftTab().getTabComponentAt(i)
if t:
if t.getLabel().getText() == title:
for l in t.getLabel().getMouseListeners():
print l
t.getLabel().removeMouseListener(l)