1010from PySide2 .QtWidgets import *
1111
1212from .....GUI .Tools .FloatEdit import FloatEdit
13- from .....GUI .Tools .WPathSelector .WPathSelector import WPathSelector
13+ from .....GUI .Tools .WPathSelector .WPathSelectorV import WPathSelectorV
1414from .....GUI .Tools .MPLCanvas import MPLCanvas
1515
1616from pyleecan .GUI .Resources import pyleecan_rc
@@ -230,16 +230,6 @@ def setupUi(self, SSimu):
230230 self .g_out .setObjectName (u"g_out" )
231231 self .verticalLayout = QVBoxLayout (self .g_out )
232232 self .verticalLayout .setObjectName (u"verticalLayout" )
233- self .w_path_result = WPathSelector (self .g_out )
234- self .w_path_result .setObjectName (u"w_path_result" )
235- sizePolicy1 .setHeightForWidth (
236- self .w_path_result .sizePolicy ().hasHeightForWidth ()
237- )
238- self .w_path_result .setSizePolicy (sizePolicy1 )
239- self .w_path_result .setMinimumSize (QSize (100 , 0 ))
240-
241- self .verticalLayout .addWidget (self .w_path_result )
242-
243233 self .horizontalLayout_2 = QHBoxLayout ()
244234 self .horizontalLayout_2 .setObjectName (u"horizontalLayout_2" )
245235 self .in_name = QLabel (self .g_out )
@@ -254,6 +244,19 @@ def setupUi(self, SSimu):
254244
255245 self .verticalLayout .addLayout (self .horizontalLayout_2 )
256246
247+ self .w_path_result = WPathSelectorV (self .g_out )
248+ self .w_path_result .setObjectName (u"w_path_result" )
249+ sizePolicy2 = QSizePolicy (QSizePolicy .Expanding , QSizePolicy .Preferred )
250+ sizePolicy2 .setHorizontalStretch (0 )
251+ sizePolicy2 .setVerticalStretch (0 )
252+ sizePolicy2 .setHeightForWidth (
253+ self .w_path_result .sizePolicy ().hasHeightForWidth ()
254+ )
255+ self .w_path_result .setSizePolicy (sizePolicy2 )
256+ self .w_path_result .setMinimumSize (QSize (100 , 0 ))
257+
258+ self .verticalLayout .addWidget (self .w_path_result )
259+
257260 self .is_losses = QCheckBox (self .g_out )
258261 self .is_losses .setObjectName (u"is_losses" )
259262
@@ -434,7 +437,7 @@ def retranslateUi(self, SSimu):
434437 self .in_nb_worker .setText (
435438 QCoreApplication .translate ("SSimu" , u"Number of workers:" , None )
436439 )
437- self .g_out .setTitle (QCoreApplication .translate ("SSimu" , u"Results " , None ))
440+ self .g_out .setTitle (QCoreApplication .translate ("SSimu" , u"Output " , None ))
438441 self .in_name .setText (QCoreApplication .translate ("SSimu" , u"Simu name:" , None ))
439442 self .is_losses .setText (
440443 QCoreApplication .translate ("SSimu" , u"Compute core and Joule losses" , None )
0 commit comments