wolfhece 2.1.63__py3-none-any.whl → 2.1.65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wolfhece/PyDraw.py +36 -6
- wolfhece/apps/version.py +1 -1
- wolfhece/wolf_array.py +9 -7
- {wolfhece-2.1.63.dist-info → wolfhece-2.1.65.dist-info}/METADATA +1 -1
- {wolfhece-2.1.63.dist-info → wolfhece-2.1.65.dist-info}/RECORD +8 -8
- {wolfhece-2.1.63.dist-info → wolfhece-2.1.65.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.63.dist-info → wolfhece-2.1.65.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.63.dist-info → wolfhece-2.1.65.dist-info}/top_level.txt +0 -0
wolfhece/PyDraw.py
CHANGED
@@ -605,6 +605,8 @@ class WolfMapViewer(wx.Frame):
|
|
605
605
|
# Help
|
606
606
|
self.helpmenu = wx.Menu()
|
607
607
|
self.helpmenu.Append(wx.ID_ANY, _('Shortcuts'), _('Shortcuts'))
|
608
|
+
self.helpmenu.Append(wx.ID_ANY, _('Show logs/informations'), _('Logs'))
|
609
|
+
self.helpmenu.Append(wx.ID_ANY, _('Show values'), _('Data/Values'))
|
608
610
|
self.helpmenu.Append(wx.ID_ANY, _('About'), _('About'))
|
609
611
|
self.helpmenu.Append(wx.ID_ANY, _('Check for updates'), _('Update?'))
|
610
612
|
|
@@ -673,10 +675,10 @@ class WolfMapViewer(wx.Frame):
|
|
673
675
|
# self.treelist.SetPosition((0,0))
|
674
676
|
|
675
677
|
# fenêtre ToolTip
|
676
|
-
self.mytooltip = Wolf_Param(self, _("Data/Results"), to_read=False, withbuttons=False, toolbar=False)
|
678
|
+
self.mytooltip = Wolf_Param(self, _("Data/Results"), to_read=False, withbuttons=False, toolbar=False, DestroyAtClosing=False)
|
677
679
|
self.mytooltip.SetSize(300, 400)
|
678
680
|
self.mytooltip.prop.SetDescBoxHeight(20) # Hauteur de la zone de description
|
679
|
-
self.mytooltip.Show(
|
681
|
+
self.mytooltip.Show(True)
|
680
682
|
self._oldpos_tooltip = None
|
681
683
|
|
682
684
|
#Notebooks
|
@@ -733,6 +735,24 @@ class WolfMapViewer(wx.Frame):
|
|
733
735
|
def wxlogging(self, value):
|
734
736
|
self._wxlogging = value
|
735
737
|
|
738
|
+
def check_logging(self):
|
739
|
+
""" Check if logging window is shown """
|
740
|
+
|
741
|
+
if self._wxlogging is None:
|
742
|
+
logging.info(_('No logging window'))
|
743
|
+
return
|
744
|
+
|
745
|
+
self._wxlogging.Show()
|
746
|
+
|
747
|
+
def check_tooltip(self):
|
748
|
+
""" Check if tooltip window is shown """
|
749
|
+
|
750
|
+
if self.mytooltip is None:
|
751
|
+
logging.info(_('No tooltip window'))
|
752
|
+
return
|
753
|
+
|
754
|
+
self.mytooltip.Show()
|
755
|
+
|
736
756
|
|
737
757
|
def open_hydrological_model(self):
|
738
758
|
""" Open a hydrological model """
|
@@ -4429,6 +4449,12 @@ class WolfMapViewer(wx.Frame):
|
|
4429
4449
|
# show shortcuts in log
|
4430
4450
|
self.print_shortcuts(True)
|
4431
4451
|
|
4452
|
+
elif itemlabel == _('Show logs/informations'):
|
4453
|
+
self.check_logging()
|
4454
|
+
|
4455
|
+
elif itemlabel == _('Show values'):
|
4456
|
+
self.check_tooltip()
|
4457
|
+
|
4432
4458
|
elif itemlabel == _('About'):
|
4433
4459
|
#print About Frame
|
4434
4460
|
self.print_About()
|
@@ -7492,6 +7518,11 @@ class WolfMapViewer(wx.Frame):
|
|
7492
7518
|
curobj: WolfArray
|
7493
7519
|
curobj = self.active_array.SelectionData
|
7494
7520
|
|
7521
|
+
if curobj.myselection == 'all':
|
7522
|
+
logging.warning(_('All nodes are selected !!'))
|
7523
|
+
logging.warning(_('Selecting node by node will force to reset the selection'))
|
7524
|
+
logging.warning(_('and start from scratch'))
|
7525
|
+
|
7495
7526
|
curobj.add_node_to_selection(x, y)
|
7496
7527
|
curobj.update_nb_nodes_selection()
|
7497
7528
|
self.Paint()
|
@@ -8202,7 +8233,7 @@ class WolfMapViewer(wx.Frame):
|
|
8202
8233
|
self.mytooltip.SetIcon(self.GetIcon()) # update icon
|
8203
8234
|
self.mytooltip.SetWindowStyle(wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP) # on top, with Title bar
|
8204
8235
|
|
8205
|
-
self.mytooltip.Show(True)
|
8236
|
+
# self.mytooltip.Show(True)
|
8206
8237
|
|
8207
8238
|
def Autoscale(self, update_backfore=True):
|
8208
8239
|
""" Redimensionnement de la fenêtre pour afficher tous les objets """
|
@@ -8502,7 +8533,7 @@ class WolfMapViewer(wx.Frame):
|
|
8502
8533
|
'CTRL+Shift+F4': _('Particle system : choose the step based on time'),
|
8503
8534
|
'SPACE': _('Particle system : pause/resume animation'),
|
8504
8535
|
|
8505
|
-
'
|
8536
|
+
'LMB and move': _('Drawing : translate the view'),
|
8506
8537
|
'Mouse wheel click and move': _('Drawing : translate the view'),
|
8507
8538
|
'Mouse wheel': _('Drawing : zoom in/out - centered on the middle of the canvas'),
|
8508
8539
|
'Mouse wheel + Space Bar': _('Drawing : zoom in/out - centered on the mouse position'),
|
@@ -8511,8 +8542,6 @@ class WolfMapViewer(wx.Frame):
|
|
8511
8542
|
'CTRL + z': _('Drawing : Autoscale only on active array'),
|
8512
8543
|
'CTRL + Z': _('Drawing : Autoscale only on active vector'),
|
8513
8544
|
|
8514
|
-
'Arrow keys': _('Drawing : lateral movements'),
|
8515
|
-
|
8516
8545
|
'F5': _('Drawing : autoscale'),
|
8517
8546
|
'F7': _('Drawing : refresh'),
|
8518
8547
|
'Arrows': _('Drawing : lateral movements'),
|
@@ -8549,6 +8578,7 @@ class WolfMapViewer(wx.Frame):
|
|
8549
8578
|
'f or F, CTRL+F': _('Zones : search for the polyline in the current zone or in all zones'),
|
8550
8579
|
|
8551
8580
|
'RETURN': _('Action : End the current action (see also right double-click -- OnRDClick)'),
|
8581
|
+
'Press and Hold CTRL': _('Action : Data Frame follows the mouse cursor'),
|
8552
8582
|
|
8553
8583
|
'DELETE': _('Tree : Remove item'),
|
8554
8584
|
|
wolfhece/apps/version.py
CHANGED
wolfhece/wolf_array.py
CHANGED
@@ -3049,13 +3049,6 @@ class SelectionData():
|
|
3049
3049
|
# So, if we want to update the plot, we need to apply the flag on each selection (current ans stored)
|
3050
3050
|
update_select = self.update_plot_selection
|
3051
3051
|
|
3052
|
-
if self.myselection != 'all':
|
3053
|
-
# plot current selection in RED if not 'all'
|
3054
|
-
if len(self.myselection) > 0:
|
3055
|
-
self.numlist_select = self._plot_selection(self.myselection,
|
3056
|
-
(1., 0., 0.),
|
3057
|
-
self.numlist_select)
|
3058
|
-
|
3059
3052
|
if len(self.selections) > 0:
|
3060
3053
|
# plot stored selections
|
3061
3054
|
for cur in self.selections.values():
|
@@ -3067,6 +3060,15 @@ class SelectionData():
|
|
3067
3060
|
float(col[2]) / 255.),
|
3068
3061
|
cur['idgllist'])
|
3069
3062
|
|
3063
|
+
|
3064
|
+
if self.myselection != 'all':
|
3065
|
+
# plot current selection in RED if not 'all'
|
3066
|
+
if len(self.myselection) > 0:
|
3067
|
+
self.update_plot_selection = update_select
|
3068
|
+
self.numlist_select = self._plot_selection(self.myselection,
|
3069
|
+
(1., 0., 0.),
|
3070
|
+
self.numlist_select)
|
3071
|
+
|
3070
3072
|
def _plot_selection(self, curlist:list[float], color:list[float], loclist:int=0):
|
3071
3073
|
"""
|
3072
3074
|
Plot a selection
|
@@ -7,7 +7,7 @@ wolfhece/ManageParams.py,sha256=EeuUI5Vvh9ixCvYf8YShMC1s1Yacc7OxOCN7q81gqiQ,517
|
|
7
7
|
wolfhece/Model1D.py,sha256=uL1DJVmDI2xVSE7H6n3icn3QbsPtTHeg8E-6wkDloKw,476914
|
8
8
|
wolfhece/PyConfig.py,sha256=FB8u0belXOXTb03Ln6RdVWvMgjzi3oGPCmw2dWa3lNg,8332
|
9
9
|
wolfhece/PyCrosssections.py,sha256=FnmM9DWY_SAF2EDH9Gu2PojXNtSTRF4-aYQuAAJXBh4,112771
|
10
|
-
wolfhece/PyDraw.py,sha256=
|
10
|
+
wolfhece/PyDraw.py,sha256=fUz1NhX5BHIBwOWeFOt5ubSQjVaL-E9uRkCM_84v9rA,409593
|
11
11
|
wolfhece/PyGui.py,sha256=oBIBpgBQRR_XXucKE5-RFrtqKj0DRg9VlUCRo8Mzalc,105009
|
12
12
|
wolfhece/PyGuiHydrology.py,sha256=f60E8K9eGTnRq5RDF6yvt-ahf2AYegwQ9t25zZ2Mk1A,14946
|
13
13
|
wolfhece/PyHydrographs.py,sha256=jwtSNMMACwarxrtN1UeQYth99UNrhwPx1IGgUwcooHA,3774
|
@@ -48,7 +48,7 @@ wolfhece/pywalous.py,sha256=yRaWJjKckXef1d9D5devP0yFHC9uc6kRV4G5x9PNq9k,18972
|
|
48
48
|
wolfhece/rain_SPWMI.py,sha256=qCfcmF7LajloOaCwnTrrSMzyME03YyilmRUOqrPrv3U,13846
|
49
49
|
wolfhece/textpillow.py,sha256=map7HsGYML_o5NHRdFg2s_TVQed_lDnpYNDv27MM0Vw,14130
|
50
50
|
wolfhece/tools_mpl.py,sha256=gQ3Jg1iuZiecmMqa5Eli2ZLSkttu68VXL8YmMDBaEYU,564
|
51
|
-
wolfhece/wolf_array.py,sha256=
|
51
|
+
wolfhece/wolf_array.py,sha256=bMDlkb019_yIybYVX6UCAVaCddFRLyiWJxoKwBlJBco,375943
|
52
52
|
wolfhece/wolf_hist.py,sha256=7jeVrgSkM3ErJO6SRMH_PGzfLjIdw8vTy87kesldggk,3582
|
53
53
|
wolfhece/wolf_texture.py,sha256=DS5eobLxrq9ljyebYfpMSQPn8shkUAZZVfqrOKN_QUU,16951
|
54
54
|
wolfhece/wolf_tiles.py,sha256=2Ho2I20rHRY81KXxjgLOYISdF4OkJ2d6omeY4shDoGI,10386
|
@@ -72,7 +72,7 @@ wolfhece/apps/check_install.py,sha256=Xoi_d8MzKzNAy2xqEpERdsqgRPu0hbBWukI0WkIYzD
|
|
72
72
|
wolfhece/apps/curvedigitizer.py,sha256=Yps4bcayzbsz0AoVc_dkSk35dEhhn_esIBy1Ziefgmk,5334
|
73
73
|
wolfhece/apps/isocurrent.py,sha256=dagmGR8ja9QQ1gwz_8fU-N052hIw-W0mWGVkzLu6C7I,4247
|
74
74
|
wolfhece/apps/splashscreen.py,sha256=SrustmIQeXnsiD-92OzjdGhBi-S7c_j-cSvuX4T6rtg,2929
|
75
|
-
wolfhece/apps/version.py,sha256=
|
75
|
+
wolfhece/apps/version.py,sha256=MSfXnG6D4mlxFKhJcFP7QlAfHWaScurZWwVBhbmAPBw,388
|
76
76
|
wolfhece/apps/wolf.py,sha256=j_CgvsL8rwixbVvVD5Z0s7m7cHZ86gmFLojKGuetMls,729
|
77
77
|
wolfhece/apps/wolf2D.py,sha256=4z_OPQ3IgaLtjexjMKX9ppvqEYyjFLt1hcfFABy3-jU,703
|
78
78
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -283,8 +283,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=8PlMYrb_8jI8h9F0_EagpM
|
|
283
283
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=ORy7fz4dcp691qKzaOZHrRLZ0uXNhL-LIHxmpDGL6BI,5007
|
284
284
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
285
285
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
286
|
-
wolfhece-2.1.
|
287
|
-
wolfhece-2.1.
|
288
|
-
wolfhece-2.1.
|
289
|
-
wolfhece-2.1.
|
290
|
-
wolfhece-2.1.
|
286
|
+
wolfhece-2.1.65.dist-info/METADATA,sha256=SxpvAVmGTj271sGsiTyfCzK2NYSSX2swU4BnZMJNc40,2570
|
287
|
+
wolfhece-2.1.65.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
288
|
+
wolfhece-2.1.65.dist-info/entry_points.txt,sha256=Q5JuIWV4odeIJI3qc6fV9MwRoz0ezqPVlFC1Ppm_vdQ,395
|
289
|
+
wolfhece-2.1.65.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
290
|
+
wolfhece-2.1.65.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|