Skip to content

Commit ab60ff5

Browse files
committed
Allow removal of mail window title-bar and border chrome
1 parent e96a183 commit ab60ff5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

slip39/gui/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ def app(
697697
edit = None,
698698
passphrase = None,
699699
scaling = None,
700+
no_titlebar = False,
700701
):
701702
"""Convert sequence of group specifications into standard { "<group>": (<needs>, <size>) ... }"""
702703

@@ -778,7 +779,7 @@ def app(
778779
window = sg.Window(
779780
f"{', '.join( names or [ 'SLIP-39' ] )} Mnemonic Cards", layout,
780781
grab_anywhere = True,
781-
no_titlebar = True,
782+
no_titlebar = no_titlebar,
782783
scaling = scaling,
783784
)
784785
timeout = 0 # First time through w/ new window, refresh immediately
@@ -1093,6 +1094,8 @@ def main( argv=None ):
10931094
ap.add_argument( '-s', '--scaling',
10941095
default=1, type=float,
10951096
help="Scaling for display (eg. 1.5, 0.5 for high-resolution displays), if not automatically detected")
1097+
ap.add_argument( '--no-titlebar', default=False, action='store_true',
1098+
help="Avoid displaying a title bar and border on main window" )
10961099
ap.add_argument( 'names', nargs="*",
10971100
help="Account names to produce")
10981101
args = ap.parse_args( argv )
@@ -1118,6 +1121,7 @@ def main( argv=None ):
11181121
cryptocurrency = args.cryptocurrency,
11191122
edit = args.path,
11201123
passphrase = args.passphrase,
1124+
no_titlebar = args.no_titlebar,
11211125
scaling = args.scaling,
11221126
)
11231127
except Exception as exc:

0 commit comments

Comments
 (0)