Skip to content

Commit

Permalink
Added linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialQualia committed Jul 4, 2017
1 parent 3e6d358 commit c63dd20
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
7 changes: 6 additions & 1 deletion PyEveLiveDPS/logreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import datetime
import time
import platform
from tkinter import messagebox, IntVar

from watchdog.events import FileSystemEventHandler
Expand All @@ -11,7 +12,11 @@ class CharacterDetector(FileSystemEventHandler):
def __init__(self, characterMenu):
self.characterMenu = characterMenu
self.observer = Observer()
self.path = os.environ['HOMEPATH'] + "\\Documents\\EVE\\logs\\Gamelogs\\"

if (platform.system() == "Windows"):
self.path = os.environ['HOMEPATH'] + "\\Documents\\EVE\\logs\\Gamelogs\\"
else:
self.path = os.environ['HOME'] + "/Documents/EVE/logs/Gamelogs/"

self.menuEntries = []
self.logReaders = []
Expand Down
23 changes: 19 additions & 4 deletions PyEveLiveDPS/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import tkinter as tk
from tkinter import ttk
import tkinter.font as tkFont
import platform
import graph
import logreader

Expand All @@ -23,6 +24,8 @@ def __init__(self):
self.configure(background="black")
self.minsize(220,100)

self.platform = platform.system()

self.secondsVar = tk.StringVar()
self.secondsVar.set("10")
self.intervalVar = tk.StringVar()
Expand Down Expand Up @@ -56,25 +59,37 @@ def __init__(self):
self.rightResizeFrame.bind("<ButtonRelease-1>", self.StopMove)
self.rightResizeFrame.bind("<B1-Motion>", self.OnMotionResizeXRight)

self.topLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_nw_se")
if (self.platform == "Windows"):
self.topLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_nw_se")
else:
self.topLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="top_left_corner")
self.topLeftResizeFrame.grid(row="0", column="0")
self.topLeftResizeFrame.bind("<ButtonPress-1>", self.StartMove)
self.topLeftResizeFrame.bind("<ButtonRelease-1>", self.StopMove)
self.topLeftResizeFrame.bind("<B1-Motion>", self.OnMotionResizeNw)

self.topRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_ne_sw")
if (self.platform == "Windows"):
self.topRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_ne_sw")
else:
self.topRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="top_right_corner")
self.topRightResizeFrame.grid(row="0", column="20")
self.topRightResizeFrame.bind("<ButtonPress-1>", self.StartMove)
self.topRightResizeFrame.bind("<ButtonRelease-1>", self.StopMove)
self.topRightResizeFrame.bind("<B1-Motion>", self.OnMotionResizeNe)

self.bottomLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_ne_sw")
if (self.platform == "Windows"):
self.bottomLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_ne_sw")
else:
self.bottomLeftResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="bottom_left_corner")
self.bottomLeftResizeFrame.grid(row="20", column="0")
self.bottomLeftResizeFrame.bind("<ButtonPress-1>", self.StartMove)
self.bottomLeftResizeFrame.bind("<ButtonRelease-1>", self.StopMove)
self.bottomLeftResizeFrame.bind("<B1-Motion>", self.OnMotionResizeSw)

self.bottomRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_nw_se")
if (self.platform == "Windows"):
self.bottomRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="size_nw_se")
else:
self.bottomRightResizeFrame = tk.Frame(width=5, height=5, background="black", cursor="bottom_right_corner")
self.bottomRightResizeFrame.grid(row="20", column="20")
self.bottomRightResizeFrame.bind("<ButtonPress-1>", self.StartMove)
self.bottomRightResizeFrame.bind("<ButtonRelease-1>", self.StopMove)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ https://github.com/ArtificialQualia/PyEveLiveDPS/releases

To run, simply unzip and run peld.exe

You can run multiple copies to track different characters at the same time.

If you want PELD to overlay on top of your eve client, make sure you are running eve in borderless windowed mode.

Currently this app only works on Windows. Cross platform support will be addressed at a later release.
You can run multiple copies to track different characters at the same time.

The packaged release is for Windows. To run on Linux, run from source. See below about how to run from source. Other OSes are untested but may be addressed at a later date.

## What is it?

Expand Down

0 comments on commit c63dd20

Please sign in to comment.