Comments (6)
What is preventing this from running on Linux?
I developed and built it on Windows with a specific use-case in mind. As such it's not tested on Linux or macOS but could work. ImQuick's builds are made integrate with Windows, and I'm not familiar enough with Linux to know how to add the equivalent of "Open with" shortcuts. Nonetheless if that'd be feasible it may be worth expanding support.
I changed import TkinterDnD2 as tkDnD to import tkinterdnd2 as tkDnD (not sure why the case is different)
Aha! The tkDnD2 system wasn't available on PyPi when I started development. This should make it much easier to install going forwards, thanks for finding that.
With regards to the icon issues, I believe linux tk doesn't support .ico files (I may be wrong). We'd need to add a PNG version for that resource to work properly.
Please do make a note of any problems you encounter!
from imquick.
My suggestion would be:
- put
sudo apt install tkdnd
into the Installation part of the document - change the import to
import tkinterdnd2 as tkDnD
(or put that in theexcept:
part of atry import TkinterDnD2 as tkDnD
) - wrap
self.iconbitmap
in atry: except
so it doesn't crash if no icon found
That's enough to be able to advertise Linux compatibility.
The desktop integration can be partly handled by creating a .desktop
file, but that's for another day/issue.
from imquick.
Thanks, looks like it can run on macOS too with some minor modifications. Would you be able to post a screenshot of how it looks on Linux?
from imquick.
from imquick.
Thanks for that! Looks like the UI elements are behaving sensibly. I've made the macOS-linux-support
branch with some modifications for this, would you be able to test it on your Linux machine?
from imquick.
Sorry for the delay. The instruction to pip install -e .
doesn't work (no setup.py) but pip install -r requirements.txt
worked. The program then worked (although you might still need to add sudo apt install tkdnd
to the readme). However the info window complained
self.iconbitmap(resource_directory(ICON_FILE))
File "/usr/lib/python3.8/tkinter/__init__.py", line 2080, in wm_iconbitmap
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "resources/ImQuick.png" not defined
Not sure why, because that file definitely exists.
If I remove the call to self.iconbitmap
then it is ok.
The About window doesn't make that call anyway so I think it's not necessary for the Info window either.
from imquick.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imquick.