Skip to content

Commit d1b7188

Browse files
author
Michael Whapples
committed
Convert to QMainWindow, will be needed to add menu.
1 parent 77963e1 commit d1b7188

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/convert2ebrl/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from convert2ebrl.brf_to_ebrf import Brf2EbrfWidget
1919
from convert2ebrl.hash_utils import get_file_hash
20+
from convert2ebrl.main_window import MainWindow
2021
from convert2ebrl.settings import PROFILES_FILE_NAME
2122
from convert2ebrl.settings.defaults import DEFAULT_SETTINGS_PROFILES_LIST
2223
from convert2ebrl.utils import save_settings_profiles, get_app_config_path
@@ -46,8 +47,7 @@ def run_app(args: Sequence[str]):
4647
if not profiles_path.exists():
4748
save_settings_profiles(DEFAULT_SETTINGS_PROFILES_LIST)
4849

49-
w = Brf2EbrfWidget()
50-
w.setWindowTitle("Convert BRF to eBraille")
50+
w = MainWindow()
5151
w.show()
5252

5353
def starting_app():

src/convert2ebrl/main_window.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2025. American Printing House for the Blind.
2+
#
3+
# This file is part of Convert2EBRL.
4+
# Convert2EBRL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5+
# Convert2EBRL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6+
# You should have received a copy of the GNU General Public License along with Convert2EBRL. If not, see <https://www.gnu.org/licenses/>.
7+
8+
from PySide6.QtWidgets import QMainWindow
9+
10+
from convert2ebrl.brf_to_ebrf import Brf2EbrfWidget
11+
12+
13+
class MainWindow(QMainWindow):
14+
def __init__(self):
15+
super().__init__()
16+
self.setWindowTitle("Convert BRF to eBraille")
17+
self.setCentralWidget(Brf2EbrfWidget())

0 commit comments

Comments
 (0)