Local mod name based on username

master
Jaka Perovšek 2024-05-10 22:30:08 +02:00
parent 2f6b1a8a33
commit 93d7e0dce2
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import sys import sys
import os import os
import getpass
from tape_editor_widgets import * from tape_editor_widgets import *
@ -23,9 +24,10 @@ class OptionsWidget(QWidget):
# Name options # Name options
self.name_line_edit = QLineEdit() self.name_line_edit = QLineEdit()
self.name_line_edit.setText(f"{getpass.getuser()} mixtape")
self.name_hbox = QHBoxLayout() self.name_hbox = QHBoxLayout()
self.name_hbox.addWidget(self.name_line_edit) self.name_hbox.addWidget(self.name_line_edit)
self.name_gbox = QGroupBox("Local mod name") self.name_gbox = QGroupBox("Local mod")
self.name_gbox.setCheckable(True) self.name_gbox.setCheckable(True)
self.name_gbox.setLayout(self.name_hbox) self.name_gbox.setLayout(self.name_hbox)