-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_image_toolkit_import.py
More file actions
26 lines (22 loc) · 996 Bytes
/
Copy pathtest_image_toolkit_import.py
File metadata and controls
26 lines (22 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
# image_toolkit import動作検証用テストスクリプト
def main():
try:
from image_toolkit import BasicGuiApp, ExtendedGuiApp, ImageProcessorApp
from image_toolkit.widgets.scalable_widgets import ScalableLabel, StyledButton
from image_toolkit.core.font_manager import FontManager
from image_toolkit.core.style_manager import StyleManager
from image_toolkit.layouts.tab_mode import TabLayout
print("image_toolkitのimportは成功しました。")
print("BasicGuiApp:", BasicGuiApp)
print("ScalableLabel:", ScalableLabel)
print("FontManager:", FontManager)
print("StyleManager:", StyleManager)
print("TabLayout:", TabLayout)
except Exception as e:
print("importエラー:", e)
if __name__ == "__main__":
main()