Skip to content

Commit

Permalink
remove QEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Feb 19, 2025
1 parent 6bb50ab commit 2054b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pixi-editor/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: pixi-editor
version: "0.3.1"
version: "0.3.2"

build:
noarch: generic
Expand Down
10 changes: 1 addition & 9 deletions pixi-editor/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QTextEdit, QEvent, QFileDialog, QAction
from PyQt5.QtWidgets import QApplication, QMainWindow, QTextEdit, QFileDialog, QAction

class TextEditor(QMainWindow):
def __init__(self, filename=None):
Expand Down Expand Up @@ -61,14 +61,6 @@ def saveFile(self):
except Exception as e:
print(f"Error saving file: {e}")

# Override event handler
def event(self, event):
print(event)
if event.type() == QEvent.Type.FileOpen:
self.handle_file(event.file())
return True
return super().event(event)


def main():
app = QApplication(sys.argv)
Expand Down

0 comments on commit 2054b18

Please sign in to comment.