39 changed files with 1068 additions and 318 deletions
@ -0,0 +1,2 @@
|
||||
from .uiloader import TTkUiLoader |
||||
from .uiproperties import TTkUiProperties |
||||
@ -0,0 +1,24 @@
|
||||
# from .about import |
||||
from .button import TTkButtonProperties |
||||
from .checkbox import TTkCheckboxProperties |
||||
from .combobox import TTkComboBoxProperties |
||||
from .frame import TTkFrameProperties |
||||
# from .graph import |
||||
# from .image import |
||||
from .label import TTkLabelProperties |
||||
from .lineedit import TTkLineEditProperties |
||||
from .list_ import TTkListProperties |
||||
# from .listwidget import |
||||
# from .menubar import |
||||
# from .progressbar import |
||||
from .radiobutton import TTkRadioButtonProperties |
||||
from .resizableframe import TTkResizableFrameProperties |
||||
# from .scrollarea import |
||||
# from .scrollbar import |
||||
# from .spacer import |
||||
# from .spinbox import |
||||
from .splitter import TTkSplitterProperties |
||||
# from .tabwidget import |
||||
# from .texedit import |
||||
from .widget import TTkWidgetProperties |
||||
from .window import TTkWindowProperties |
||||
@ -0,0 +1,21 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,39 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.button import TTkButton |
||||
|
||||
TTkButtonProperties = { |
||||
'Text' : { |
||||
'init': {'name':'text', 'type':TTkString }, |
||||
'get': {'cb':TTkButton.text, 'type':TTkString } , |
||||
'set': {'cb':TTkButton.setText, 'type':TTkString } }, |
||||
'Checkable' : { |
||||
'init': {'name':'checkable', 'type':bool }, |
||||
'get': {'cb':TTkButton.isCheckable, 'type':bool } , |
||||
'set': {'cb':TTkButton.setCheckable, 'type':bool } }, |
||||
'Checked' : { |
||||
'init': {'name':'checked', 'type':bool }, |
||||
'get': {'cb':TTkButton.isChecked, 'type':bool } , |
||||
'set': {'cb':TTkButton.setChecked, 'type':bool } }, |
||||
} |
||||
@ -0,0 +1,57 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.checkbox import TTkCheckbox |
||||
|
||||
TTkCheckboxProperties = { |
||||
'Text' : { |
||||
'init': {'name':'text', 'type':TTkString } , |
||||
'get': {'cb':TTkCheckbox.text, 'type':TTkString } , |
||||
'set': {'cb':TTkCheckbox.setText, 'type':TTkString } }, |
||||
'Tristate' : { |
||||
'init': {'name':'tristate', 'type':bool } , |
||||
'get': {'cb':TTkCheckbox.isTristate, 'type':bool } , |
||||
'set': {'cb':TTkCheckbox.setTristate, 'type':bool } }, |
||||
'Checked' : { |
||||
'init': {'name':'checked', 'type':bool } , |
||||
'get': {'cb':TTkCheckbox.isChecked, 'type':bool } , |
||||
'set': {'cb':TTkCheckbox.setChecked, 'type':bool } }, |
||||
'Check State' : { |
||||
'init': { 'name':'checked', 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked , |
||||
'Partially Checked': TTkK.PartiallyChecked } }, |
||||
'get' : { 'cb':TTkCheckbox.checkState, 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked , |
||||
'Partially Checked': TTkK.PartiallyChecked } }, |
||||
'set' : { 'cb':TTkCheckbox.setCheckState, 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked , |
||||
'Partially Checked': TTkK.PartiallyChecked } }, |
||||
}, |
||||
} |
||||
@ -0,0 +1,70 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.combobox import TTkComboBox |
||||
|
||||
TTkComboBoxProperties = { |
||||
'Editable' : { |
||||
'init': {'name':'editable', 'type':bool } , |
||||
'get': {'cb':TTkComboBox.isEditable, 'type':bool } , |
||||
'set': {'cb':TTkComboBox.setEditable, 'type':bool } }, |
||||
'Text Align.' : { |
||||
'init': {'name':'textAlign', 'type':'singleflag', |
||||
'flags': { |
||||
'None' : TTkK.Alignment.NONE, |
||||
'Left' : TTkK.Alignment.LEFT_ALIGN, |
||||
'Right' : TTkK.Alignment.RIGHT_ALIGN, |
||||
'Center' : TTkK.Alignment.CENTER_ALIGN, |
||||
'Justify': TTkK.Alignment.JUSTIFY } }, |
||||
'get': {'cb':TTkComboBox.textAlign, 'type':'singleflag', |
||||
'flags': { |
||||
'None' : TTkK.Alignment.NONE, |
||||
'Left' : TTkK.Alignment.LEFT_ALIGN, |
||||
'Right' : TTkK.Alignment.RIGHT_ALIGN, |
||||
'Center' : TTkK.Alignment.CENTER_ALIGN, |
||||
'Justify': TTkK.Alignment.JUSTIFY } } , |
||||
'set': {'cb':TTkComboBox.setTextAlign, 'type':'singleflag', |
||||
'flags': { |
||||
'None' : TTkK.Alignment.NONE, |
||||
'Left' : TTkK.Alignment.LEFT_ALIGN, |
||||
'Right' : TTkK.Alignment.RIGHT_ALIGN, |
||||
'Center' : TTkK.Alignment.CENTER_ALIGN, |
||||
'Justify': TTkK.Alignment.JUSTIFY } } }, |
||||
'Insert Policy' : { |
||||
'init': {'name':'insertPolicy', 'type':'singleflag', |
||||
'flags': { |
||||
'No Insert' : TTkK.InsertPolicy.NoInsert, |
||||
'At Top' : TTkK.InsertPolicy.InsertAtTop, |
||||
'At Bottom' : TTkK.InsertPolicy.InsertAtBottom } }, |
||||
'get': {'cb':TTkComboBox.insertPolicy, 'type':'singleflag', |
||||
'flags': { |
||||
'No Insert' : TTkK.InsertPolicy.NoInsert, |
||||
'At Top' : TTkK.InsertPolicy.InsertAtTop, |
||||
'At Bottom' : TTkK.InsertPolicy.InsertAtBottom } }, |
||||
'set': {'cb':TTkComboBox.setInsertPolicy, 'type':'singleflag', |
||||
'flags': { |
||||
'No Insert' : TTkK.InsertPolicy.NoInsert, |
||||
'At Top' : TTkK.InsertPolicy.InsertAtTop, |
||||
'At Bottom' : TTkK.InsertPolicy.InsertAtBottom } } }, |
||||
} |
||||
@ -0,0 +1,35 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.frame import TTkFrame |
||||
|
||||
TTkFrameProperties = { |
||||
'Border' : { |
||||
'init': {'name':'border', 'type':bool }, |
||||
'get': {'cb':TTkFrame.border, 'type':bool } , |
||||
'set': {'cb':TTkFrame.setBorder, 'type':bool } }, |
||||
'Title' : { |
||||
'init': {'name':'title', 'type':TTkString }, |
||||
'get': {'cb':TTkFrame.title, 'type':TTkString } , |
||||
'set': {'cb':TTkFrame.setTitle, 'type':TTkString } }, |
||||
} |
||||
@ -0,0 +1,22 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,21 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,36 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.color import TTkColor |
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.label import TTkLabel |
||||
|
||||
TTkLabelProperties = { |
||||
'Text' : { |
||||
'init': {'name':'text', 'type':TTkString }, |
||||
'get': {'cb':TTkLabel.text, 'type':TTkString } , |
||||
'set': {'cb':TTkLabel.setText, 'type':TTkString } }, |
||||
'Color' : { |
||||
'init': {'name':'color', 'type':TTkColor }, |
||||
'get': {'cb':TTkLabel.color, 'type':TTkColor } , |
||||
'set': {'cb':TTkLabel.setColor, 'type':TTkColor } }, |
||||
} |
||||
@ -0,0 +1,43 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkWidgets.lineedit import TTkLineEdit |
||||
|
||||
TTkLineEditProperties = { |
||||
'Input Type' : { |
||||
'init': {'name':'inputType', 'type':'multiflags', |
||||
'flags': { |
||||
'Text' : TTkK.Input_Text , |
||||
'Number' : TTkK.Input_Number , |
||||
'Password': TTkK.Input_Password } }, |
||||
'get': {'cb':TTkLineEdit.inputType, 'type':'multiflags', |
||||
'flags': { |
||||
'Text' : TTkK.Input_Text , |
||||
'Number' : TTkK.Input_Number , |
||||
'Password': TTkK.Input_Password } } }, |
||||
'Text' : { |
||||
'init': {'name':'text', 'type':TTkString } , |
||||
'get': {'cb':TTkLineEdit.text, 'type':TTkString } , |
||||
'set': {'cb':TTkLineEdit.setText, 'type':TTkString } } |
||||
} |
||||
@ -0,0 +1,23 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
TTkListProperties = {} |
||||
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,21 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkCore.string import TTkString |
||||
from TermTk.TTkWidgets.radiobutton import TTkRadioButton |
||||
|
||||
TTkRadioButtonProperties = { |
||||
'Text' : { |
||||
'init': {'name':'text', 'type':TTkString } , |
||||
'get': {'cb':TTkRadioButton.text, 'type':TTkString } , |
||||
'set': {'cb':TTkRadioButton.setText, 'type':TTkString } }, |
||||
'Checked' : { |
||||
'init': {'name':'checked', 'type':bool } , |
||||
'get': {'cb':TTkRadioButton.isChecked, 'type':bool } , |
||||
'set': {'cb':TTkRadioButton.setChecked, 'type':bool } }, |
||||
'Check State' : { |
||||
'init': { 'name':'checked', 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked } }, |
||||
'get' : { 'cb':TTkRadioButton.checkState, 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked } }, |
||||
'set' : { 'cb':TTkRadioButton.setCheckState, 'type':'singleflag', |
||||
'flags': { |
||||
'Checked' : TTkK.Checked , |
||||
'Unchecked' : TTkK.Unchecked } }, |
||||
}, |
||||
} |
||||
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
TTkResizableFrameProperties = {} |
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkWidgets.splitter import TTkSplitter |
||||
|
||||
TTkSplitterProperties = { |
||||
'Border' : { |
||||
'init': {'name':'border', 'type':bool } }, |
||||
'Orientation' : { |
||||
'init': {'name':'orientation', 'type':'singleflag', |
||||
'flags': { |
||||
'Horizontal' : TTkK.HORIZONTAL , |
||||
'Vertical' : TTkK.VERTICAL } } , |
||||
'get': {'cb':TTkSplitter.orientation, 'type':'singleflag', |
||||
'flags': { |
||||
'Horizontal' : TTkK.HORIZONTAL , |
||||
'Vertical' : TTkK.VERTICAL } } } |
||||
} |
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
@ -0,0 +1,89 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkLayouts.layout import TTkLayout |
||||
from TermTk.TTkWidgets.widget import TTkWidget |
||||
|
||||
TTkWidgetProperties = { |
||||
# 'X' : { |
||||
# 'init': {'name':'x', 'type':int } , |
||||
# 'get': { 'cb':x, 'type':int } }, |
||||
# 'Y' : { |
||||
# 'init': {'name':'y', 'type':int } , |
||||
# 'get': { 'cb':y, 'type':int } }, |
||||
'Position' : { |
||||
'init': {'name':'pos', 'type': [ |
||||
{ 'name': 'x', 'type':int } , |
||||
{ 'name': 'y', 'type':int } ] }, |
||||
'get': { 'cb':TTkWidget.pos, 'type': [ |
||||
{ 'name': 'x', 'type':int } , |
||||
{ 'name': 'y', 'type':int } ] }, |
||||
'set': { 'cb':TTkWidget.move, 'type': [ |
||||
{ 'name': 'x', 'type':int } , |
||||
{ 'name': 'y', 'type':int } ] } }, |
||||
'Size' : { |
||||
'init': {'name':'size', 'type': [ |
||||
{ 'name': 'width', 'type':int } , |
||||
{ 'name': 'height', 'type':int } ] }, |
||||
'get': { 'cb':TTkWidget.size, 'type': [ |
||||
{ 'name': 'width', 'type':int } , |
||||
{ 'name': 'height', 'type':int } ] }, |
||||
'set': { 'cb':TTkWidget.resize, 'type': [ |
||||
{ 'name': 'width', 'type':int } , |
||||
{ 'name': 'height', 'type':int } ] } }, |
||||
# 'Width' : { |
||||
# 'init': {'name':'width', 'type':int } , |
||||
# 'get': { 'cb':width, 'type':int } }, |
||||
# 'Height' : { |
||||
# 'init': {'name':'height', 'type':int } , |
||||
# 'get': { 'cb':height, 'type':int } }, |
||||
'Min Width' : { |
||||
'init': {'name':'minWidth', 'type':int } , |
||||
'get': { 'cb':TTkWidget.minimumWidth, 'type':int } , |
||||
'set': { 'cb':TTkWidget.setMinimumWidth,'type':int } }, |
||||
'Min Height' : { |
||||
'init': {'name':'minHeight', 'type':int } , |
||||
'get': { 'cb':TTkWidget.minimumHeight, 'type':int } , |
||||
'set': { 'cb':TTkWidget.setMinimumHeight,'type':int } }, |
||||
'Max Width' : { |
||||
'init': {'name':'maxWidth', 'type':int } , |
||||
'get': { 'cb':TTkWidget.maximumWidth, 'type':int } , |
||||
'set': { 'cb':TTkWidget.setMaximumWidth,'type':int } }, |
||||
'Max Height' : { |
||||
'init': {'name':'maxHeight', 'type':int } , |
||||
'get': { 'cb':TTkWidget.maximumHeight, 'type':int } , |
||||
'set': { 'cb':TTkWidget.setMaximumHeight,'type':int } }, |
||||
'Layout' : { |
||||
'init': {'name':'layout', 'type':TTkLayout} , |
||||
'get': { 'cb':TTkWidget.layout, 'type':TTkLayout} , |
||||
'set': { 'cb':TTkWidget.setLayout, 'type':TTkLayout} }, |
||||
'Name' : { |
||||
'init': {'name':'name', 'type':str } }, |
||||
'Visible' : { |
||||
'init': {'name':'visible', 'type':bool } , |
||||
'get': {'cb':TTkWidget.isVisible, 'type':bool } , |
||||
'set': {'cb':TTkWidget.setVisible, 'type':bool } }, |
||||
'Enabled' : { |
||||
'init': {'name':'enabled', 'type':bool } , |
||||
'get': {'cb':TTkWidget.isEnabled, 'type':bool } , |
||||
'set': {'cb':TTkWidget.setEnabled, 'type':bool } }, |
||||
} |
||||
@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env python3 |
||||
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkCore.constant import TTkK |
||||
from TermTk.TTkWidgets.window import TTkWindow |
||||
|
||||
TTkWindowProperties = { |
||||
'Window Flags' : { |
||||
'init': { 'name':'flags', 'type':'multiflags', |
||||
'flags': { |
||||
'Close Button' : TTkK.WindowFlag.WindowCloseButtonHint , |
||||
'Maximize Button': TTkK.WindowFlag.WindowMaximizeButtonHint , |
||||
'Minimize Button': TTkK.WindowFlag.WindowMinimizeButtonHint , |
||||
'Reduce Button' : TTkK.WindowFlag.WindowReduceButtonHint } }, |
||||
'get' : { 'cb':TTkWindow.windowFlag, 'type':'multiflags', |
||||
'flags': { |
||||
'Close Button' : TTkK.WindowFlag.WindowCloseButtonHint , |
||||
'Maximize Button': TTkK.WindowFlag.WindowMaximizeButtonHint , |
||||
'Minimize Button': TTkK.WindowFlag.WindowMinimizeButtonHint , |
||||
'Reduce Button' : TTkK.WindowFlag.WindowReduceButtonHint } }, |
||||
'set' : { 'cb':TTkWindow.setWindowFlag, 'type':'multiflags', |
||||
'flags': { |
||||
'Close Button' : TTkK.WindowFlag.WindowCloseButtonHint , |
||||
'Maximize Button': TTkK.WindowFlag.WindowMaximizeButtonHint , |
||||
'Minimize Button': TTkK.WindowFlag.WindowMinimizeButtonHint , |
||||
'Reduce Button' : TTkK.WindowFlag.WindowReduceButtonHint } }, |
||||
}, |
||||
} |
||||
@ -0,0 +1,24 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
class TTkUiLoader(): |
||||
pass |
||||
@ -0,0 +1,40 @@
|
||||
# MIT License |
||||
# |
||||
# Copyright (c) 2023 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> |
||||
# |
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
# of this software and associated documentation files (the "Software"), to deal |
||||
# in the Software without restriction, including without limitation the rights |
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
# copies of the Software, and to permit persons to whom the Software is |
||||
# furnished to do so, subject to the following conditions: |
||||
# |
||||
# The above copyright notice and this permission notice shall be included in all |
||||
# copies or substantial portions of the Software. |
||||
# |
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
# SOFTWARE. |
||||
|
||||
from TermTk.TTkLayouts import TTkLayout, TTkGridLayout, TTkVBoxLayout, TTkHBoxLayout |
||||
from TermTk.TTkWidgets import * |
||||
from .properties import * |
||||
|
||||
TTkUiProperties = { |
||||
TTkButton: TTkButtonProperties, |
||||
TTkCheckbox: TTkCheckboxProperties, |
||||
TTkComboBox: TTkComboBoxProperties, |
||||
TTkFrame: TTkFrameProperties, |
||||
TTkLabel: TTkLabelProperties, |
||||
TTkLineEdit: TTkLineEditProperties, |
||||
TTkList: TTkListProperties, |
||||
TTkRadioButton: TTkRadioButtonProperties, |
||||
TTkResizableFrame: TTkResizableFrameProperties, |
||||
TTkSplitter: TTkSplitterProperties, |
||||
TTkWidget: TTkWidgetProperties, |
||||
TTkWindow: TTkWindowProperties, |
||||
} |
||||
Loading…
Reference in new issue