Skip to content

Commit 64972f5

Browse files
committed
changed confirmation dialog and tests
1 parent e03282e commit 64972f5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

phoebusgen/widget/properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def confirmation_dialog(self, message: str, password: str = None) -> None:
644644
:param message: Confirmation dialog message
645645
:param password: Password for dialog. Stored in plain text XML
646646
"""
647-
self._shared.boolean_property(self.root, 'show_confirmation_dialog', True)
647+
self._shared.boolean_property(self.root, 'show_confirm_dialog', True)
648648
self._shared.generic_property(self.root, 'confirm_message', message)
649649
if password is not None:
650650
self._shared.generic_property(self.root, 'password', password)
@@ -653,7 +653,7 @@ def disable_confirmation_dialog(self) -> None:
653653
"""
654654
Turn off confirmation dialog for widget
655655
"""
656-
self._shared.boolean_property(self.root, 'show_confirmation_dialog', False)
656+
self._shared.boolean_property(self.root, 'show_confirm_dialog', False)
657657

658658
class _MultiLine(object):
659659
def multi_line(self, val: bool) -> None:

reload_local_pip.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
echo y | pip uninstall phoebusgen
3+
echo y | pip3 uninstall phoebusgen
44
rm -rf build
55
python3 setup.py sdist bdist_wheel
6-
pip install --user .
6+
pip3 install --user .

tests/property_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def test_angle_size(self):
678678

679679

680680
class TestConfirmation(GenericTest):
681-
dialog_tag = 'show_confirmation_dialog'
681+
dialog_tag = 'show_confirm_dialog'
682682
message_tag = 'confirm_message'
683683
password_tag = 'password'
684684
message = 'Are you sure?'

0 commit comments

Comments
 (0)