yoelk / instrumentino

Instrumentino is an open-source modular graphical user interface framework for controlling Arduino based experimental instruments
GNU General Public License v3.0
137 stars 59 forks source link

Issue detecting "stopButton.png" at startup #8

Closed ghost closed 8 years ago

ghost commented 9 years ago

My environment: OS: Ubuntu v14.x IDE: LiClipse v1.4.0.x (Eclipse variant with PyDev and other things pre-loaded) Python: v2.7 Instrumentino: v1.08

Details: Installing/importing the instrumentino egg from LiClipse doesn't appear to have brought with "stopButton.png" file with it.

Temporary workaround: It had to be manually copied from the instrumentino/instrumentino/resources folder to ~/.python-eggs/instrumentino-1.08-py2.7.egg-tmp/stopButton.png

Note: My guess is that this graphic is not included as a resource in the egg, I'm missing a configuration step, or using a different import method would include it? If so I don't know how to fix it properly as I'm not familiar with python egg creation and ther are too many "ifs" on my side.

Thanks!

ghost commented 9 years ago

Ah, it appears from the closed issues this has been an issue in the past. Anyway, I'm not sure if you want to close or if there is another option (documentation, wish to build the resource into the egg for xyz import, etc. ) as it appears that there are some tools that do not import the egg the same.

If you (or anyone else) don't have the time I could look into fixing this via "fixing" the egg (if even possible?), I just haven't done any egg development before.

yoelk commented 9 years ago

Hi, I'm pretty sure the egg file does include the stopButton graphics.

But anyway, it seems that you found a workaround now, right? Let's leave it like that for now, as I'm currently working on Instrumentino V2, in which Kivy will be used as the graphics platform. If you're up to it, I could sure use some help doing that so give me a call if you're interested.

Joel

On Sun, Mar 29, 2015 at 8:51 PM, Snarfums notifications@github.com wrote:

Ah, it appears from the closed issues this has been an issue in the past. Anyway, I'm not sure if you want to close or if there is another option (documentation, wish to build the resource into the egg for xyz import, etc. ) as it appears that there are some tools that do not import the egg the same.

If you (or anyone else) don't have the time I could look into fixing this via "fixing" the egg (if even possible?), I just haven't done any egg development before.

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/8#issuecomment-87454996.

ghost commented 9 years ago

I might be able to carve some time on weekends to work on things. I've never used Kivy before though. Any idea when you planning to upload V2 that I could pull down? Even if you uploaded a "non working" version as a dev branch and indicated/assigned some areas needing work I could see if I could make some useful contributions. I'm assuming a new user front end would initially just be a direct port of the V1 layout and functionality.

yoelk commented 9 years ago

Hi, that's great! And yes, for starters I want to port the existing Instrumentino to Kivy, so it's mainly GUI tasks. My first step was to create a screen layout that is divided to 3 resizable parts, using two "Splitters" (see here for more details http://stackoverflow.com/questions/28689268/how-to-use-several-splitters-in-kivy ) I want to maximize the use of kvlang, Kivy's way of describing GUI design (a bit like XML). I did that (see attached code) but I'm stuck on something. Do you see all of the duplicated code? For each splitter, I do all of these initializations (max_size, min_size, size_hint, etc.). What I'd like to do, is to combine the common code into a CustomizedSplitter class. The problem is that I couldn't make it work that way. I've opened a stackoverflow question http://stackoverflow.com/questions/28684165/passing-information-from-child-class-to-parent-using-dynamic-classes-in-kvlang some weeks ago, and even put a bounty, but no one seems to know the answer...

So this is where I'm stuck at the moment. Still in the beginning, but it's important to do things right from the start.

Thanks, have a nice Easter, Joel

On Wed, Apr 1, 2015 at 3:17 AM, Snarfums notifications@github.com wrote:

I might be able to carve some time on weekends to work on things. I've never used Kivy before though. Any idea when you planning to upload V2 that I could pull down? Even if you uploaded a "non working" version as a dev branch and indicated/assigned some areas needing work I could see if I could make some useful contributions. I'm assuming a new user front end would initially just be a direct port of the V1 layout and functionality.

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/8#issuecomment-88301859.

ghost commented 9 years ago

What version of Kivy and python are you using? I've just installed Kivy 1.8.0 (got a few of the built in examples working) and am using python 2.7. Once I read more docs and work on a few more examples I'll see what I can do.

yoelk commented 9 years ago

I'm using Python 2.7 and Kivy 1.8 as well. Yesterday I started reading this book http://www.it-ebooks.info/book/3288/ about kivy development. I hope it will help me understand how I should use kvlang

On Thu, Apr 2, 2015 at 6:39 AM, Snarfums notifications@github.com wrote:

What version of Kivy and python are you using? I've just installed Kivy 1.8.0 (got a few of the built in examples working) and am using python 2.7. Once I read more docs and work on a few more examples I'll see what I can do.

— Reply to this email directly or view it on GitHub https://github.com/yoelk/Instrumentino/issues/8#issuecomment-88730494.

ghost commented 9 years ago

I had a lot to comment and it may "go long" so I submitted it as Issue #10 :)