99
1010import guidata
1111import qwt
12- from guidata .widgets . about import get_general_infos
12+ from guidata .widgets import about as guidata_about
1313from qtpy .QtWidgets import QMessageBox , QWidget
1414
1515import plotpy
1616from plotpy .config import _
1717
1818
19+ def get_python_libs_infos (addinfos : str = "" ) -> str :
20+ """Get Python and libraries information
21+
22+ Args:
23+ addinfos: additional information to be displayed
24+
25+ Returns:
26+ str: Python and libraries information
27+ """
28+ if addinfos :
29+ addinfos = ", " + addinfos
30+ addinfos = f"PlotPy { plotpy .__version__ } { addinfos } "
31+ return guidata_about .get_python_libs_infos (addinfos )
32+
33+
1934def about (html : bool = True , copyright_only : bool = False ) -> str :
2035 """Return text about this package
2136
@@ -27,12 +42,12 @@ def about(html: bool = True, copyright_only: bool = False) -> str:
2742 str: text about this package
2843 """
2944 shortdesc = (
30- f"Plotpy { plotpy .__version__ } \n \n "
31- f"Plotpy is a set of tools for curve and image plotting.\n "
45+ f"PlotPy { plotpy .__version__ } \n \n "
46+ f"PlotPy is a set of tools for curve and image plotting.\n "
3247 f"Created by Pierre Raybaut."
3348 )
3449 addinfos = f"guidata { guidata .__version__ } , PythonQwt { qwt .__version__ } "
35- desc = get_general_infos (addinfos )
50+ desc = guidata_about . get_general_infos (addinfos )
3651 if not copyright_only :
3752 desc = f"{ shortdesc } \n \n { desc } "
3853 if html :
@@ -46,4 +61,4 @@ def show_about_dialog(parent: QWidget) -> None:
4661 Args:
4762 parent (QWidget): parent widget
4863 """
49- QMessageBox .about (parent , _ ("About" ) + " plotpy " , about (html = True ))
64+ QMessageBox .about (parent , _ ("About" ) + " PlotPy " , about (html = True ))
0 commit comments