-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from loathingKernel/shop_refactor
Refactor the Store page
- Loading branch information
Showing
57 changed files
with
4,820 additions
and
2,585 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
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
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 @@ | ||
import sys | ||
|
||
from PyQt5.QtCore import QSize | ||
from PyQt5.QtWidgets import QDialog, QApplication, QVBoxLayout | ||
from legendary.core import LegendaryCore | ||
|
||
from . import StoreTab | ||
|
||
|
||
class StoreWindow(QDialog): | ||
def __init__(self): | ||
super().__init__() | ||
|
||
self.core = LegendaryCore() | ||
self.core.login() | ||
self.store_tab = StoreTab(self.core, self) | ||
|
||
layout = QVBoxLayout(self) | ||
layout.addWidget(self.store_tab) | ||
|
||
self.store_tab.show() | ||
|
||
|
||
if __name__ == "__main__": | ||
import rare.resources.static_css | ||
# import rare.resources.stylesheets.RareStyle | ||
from rare.utils.misc import set_style_sheet | ||
|
||
app = QApplication(sys.argv) | ||
app.setApplicationName("Rare") | ||
app.setOrganizationName("Rare") | ||
|
||
set_style_sheet("") | ||
set_style_sheet("RareStyle") | ||
window = StoreWindow() | ||
window.setWindowTitle(f"{app.applicationName()} - Store") | ||
window.resize(QSize(1280, 800)) | ||
window.show() | ||
app.exec() |
Empty file.
Empty file.
Oops, something went wrong.