This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt6 import QtWidgets, QtNetwork, QtCore | |
from PyQt6.QtCore import pyqtSignal, QObject | |
class ChatWindow(QtWidgets.QWidget): | |
submitted = pyqtSignal(str) | |
def __init__(self): | |
super().__init__() | |
self.setLayout(QtWidgets.QGridLayout()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
if file_exists(file_name): | |
self.data = import_data_from_json(file_name) | |
self.data.append(dict_data) | |
export_data_to_json(file_name, self.data) | |
else: | |
# Create new json file if it doesn't exist. Put the data in an array. | |
export_data_to_json(file_name, [dict_data]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this within code-runner.executorMap | |
"kotlin": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar && rm -r $fileNameWithoutExt.jar $fileNameWithoutExtKt.class" |