-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- discord intergretion (wip) - metadata reader - bug fix
- Loading branch information
Showing
12 changed files
with
135 additions
and
38 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[2024-04-07 13:48:11,407] INFO:trying initallizing main frame.. | ||
[2024-04-07 13:48:11,499] INFO:initallized. | ||
[2024-04-07 13:48:12,442] INFO:retriving info | ||
[2024-04-07 13:48:12,900] INFO:retriving info |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
import discordsdk as sdk | ||
from pypresence import Presence | ||
import time | ||
|
||
actic = sdk.Discord(1226317055356309504, sdk.CreateFlags.default) | ||
activityManager = actic.get_activity_manager() | ||
clientID = '1226317055356309504' | ||
RPC = Presence(clientID) | ||
RPC.connect() | ||
curState = 'Running through VM' | ||
|
||
activity = sdk.Activity() | ||
activity.state = 'Running Through Debugging' | ||
activity.party.id = "00000000" | ||
activity.name = 'Imaginary' | ||
print(RPC.update(details=curState, large_image='star')) | ||
|
||
|
||
def callback(result): | ||
if result == sdk.Result.ok: | ||
print("Successfully set the activity!") | ||
else: | ||
raise Exception(result) | ||
|
||
activityManager = actic.get_activity_manager().update_activity(activity, callback) | ||
|
||
def runcallback(): | ||
while 1: | ||
time.sleep(1/10) | ||
actic.run_callbacks() | ||
|
||
runcallback() | ||
while True: | ||
RPC.update(details=curState, large_image='star') |
Empty file.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
from PyQt6.QtWidgets import QWidget, QApplication, QLabel, QMessageBox, QListView | ||
from PyQt6.QtGui import QIcon, QPixmap, QStandardItem, QStandardItemModel, QShortcut, QKeySequence | ||
from PyQt6 import QtCore | ||
from PyQt6.QtCore import Qt | ||
import os, sys, logging | ||
|
||
log = logging | ||
logFilePath = './log/debug-log.log' | ||
|
||
class CreateVM(QWidget): | ||
def __init__(self): | ||
log.info('trying initallizing frame..') | ||
try: | ||
super().__init__() | ||
|
||
self.top = 200 | ||
self.left = 500 | ||
self.width = 640 | ||
self.height = 480 | ||
|
||
self.setWindowTitle("Create VM") | ||
self.setStyleSheet("background-color: #262626;") | ||
self.setWindowIcon(QIcon('./src/png/icons/128.png')) | ||
self.setGeometry(self.top, self.left, self.width, self.height) | ||
self.setWindowFlags(QtCore.Qt.WindowType.WindowCloseButtonHint | QtCore.Qt.WindowType.WindowMinimizeButtonHint) | ||
self.initUI() | ||
log.info('initallized.') | ||
except: | ||
exc_type, exc_obj, exc_tb = sys.exc_info() | ||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] | ||
log.critical(f"ERROR Occurred!\nLog: {exc_type}, {exc_obj}, {exc_tb}, {fname}") | ||
errInfoWinInit = QMessageBox.critical(self, '오류가 발생하였습니다.', '재설정을 하는 중에 오류가 발생했습니다.\n보통 프로그램이 꼬였거나, 저장된 위치에 한글이 들어있으면 안되는 경우가 있습니다.') | ||
log.critical('failed to intiallized window') | ||
|
||
def initUI(self): | ||
self.label_Title = QLabel('Create QEMU VM', self) | ||
|
||
|
||
# font | ||
font_bold = self.label_Title.font() | ||
font_bold.setBold(True) | ||
font_bold.setPointSize(20) | ||
font_bold.setFamily('Figtree') | ||
|
||
font_bold_title = self.label_Title.font() | ||
font_bold_title.setBold(True) | ||
font_bold_title.setPointSize(30) | ||
font_bold_title.setFamily('Figtree') | ||
|
||
font_button = self.label_Title.font() | ||
font_button.setBold(True) | ||
font_button.setPointSize(15) | ||
font_button.setFamily('Figtree') | ||
|
||
self.label_Title.move(20, 15) | ||
self.label_Title.setFont(font_bold_title) | ||
self.label_Title.setStyleSheet("Color : white;") |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from PyQt6.QtWidgets import QWidget, QApplication, QLabel, QMessageBox, QListView | ||
from PyQt6.QtGui import QIcon, QPixmap, QStandardItem, QStandardItemModel, QShortcut, QKeySequence | ||
from PyQt6 import QtCore | ||
from PyQt6.QtCore import Qt | ||
import os, sys, logging | ||
|
||
log = logging | ||
logFilePath = './log/debug-log.log' | ||
|
||
class CreateVM(QWidget): | ||
def __init__(self): | ||
log.info('trying initallizing frame..') | ||
try: | ||
super().__init__() | ||
|
||
self.top = 200 | ||
self.left = 500 | ||
self.width = 640 | ||
self.height = 480 | ||
|
||
self.setWindowTitle("Imaingary INFO") | ||
self.setStyleSheet("background-color: #262626;") | ||
self.setWindowIcon(QIcon('./src/png/icons/128.png')) | ||
self.setGeometry(self.top, self.left, self.width, self.height) | ||
self.setWindowFlags(QtCore.Qt.WindowType.WindowCloseButtonHint | QtCore.Qt.WindowType.WindowMinimizeButtonHint) | ||
self.initUI() | ||
log.info('initallized.') | ||
except: | ||
exc_type, exc_obj, exc_tb = sys.exc_info() | ||
fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] | ||
log.critical(f"ERROR Occurred!\nLog: {exc_type}, {exc_obj}, {exc_tb}, {fname}") | ||
errInfoWinInit = QMessageBox.critical(self, '오류가 발생하였습니다.', '재설정을 하는 중에 오류가 발생했습니다.\n보통 프로그램이 꼬였거나, 저장된 위치에 한글이 들어있으면 안되는 경우가 있습니다.') | ||
log.critical('failed to intiallized window') | ||
|
||
def initUI(self): | ||
self.label_Logo = QLabel(self) | ||
self.label_Logo.setPixmap(QPixmap('./src/png/icons/128.png')) | ||
|
||
self.label_Logo.move(15, 15) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"sys_core": 2, | ||
"mem_size": 4, | ||
"iso_loc": "./testiso.iso", | ||
"disk_loc": "./disk.qcow2" | ||
"desc": "of" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"desc": "end" | ||
} |