Oleg,

I have not worked on `generateds_gui` for a long time.  So, please
forgive me if my memory about it is not too sharp.

I'm happy to accept pull request for fixes to it.

However, ...

I believe the problem is more than just Python 3.  I don't believe
that it works with Python 2, either.

If I recall correctly, I ran into a problem when there was a change
from one major version of `Gtk` to a newer one.  I used some feature
in the older version that enabled me to look up GUI items in the
interface definition.  As I remember it, that look-up ability was
dropped from the new version, and it seemed that it would require
some major reworking to replace it.

Add to that the fact that `generateds_gui` does not add
essential capabilities that are not in the command line version
(`generateDS.py`) and I guess I just did not have enough motivation.
We can argue about what is and is not "essential", of course.

It'd be great if you want to pick up that work, but, if you do, be
sure to determine whether you can solve that Gtk problem and how
much effort it would take, before you get too deep into it.

One additional heads-up -- New options have been added to
`generateDS.py` since I stopped work on `generateds_gui`.I'm pretty
sure that I have not kept that up to date either in `generateDS.py`
or `generateds_gui` itself.  So, there would be work to update that.

Let's consider the benefits of `generateds_gui`:

- A GUI interface to help with choosing files and options.

- The ability to run `generateDS.py` from within that GUI interface.

- The ability to save the configuration of the chosen files and
  options so that they can be re-loaded by `generateds_gui` later.
  (I believe I called that a "session".)

- And, `generateDS.py` itself could load and run a saved session
  (using the `--session=` command line option).

And, by the way, if it's the ability to save a session that you'd
like to have, I use a shell script (`bash` in my case) to
effectively duplicate that capability.  Something like this, for
example:

        #!/bin/bash -x
        ./generateDS.py \
                -f \             
                -o $1sup.py -s $1sub.py \
                --super $1sup \                                                 
  
                --member-specs=dict \
                --export="write" \
                $2

Hope this helps.  Sorry that I have not kept `generateds_gui`
up-to-date.  But, then there are other issues that need attention,
for example, like that in your other message, ...

Dave

On Fri, Feb 22, 2019 at 05:07:44PM +0100, Oleg Broytman wrote:
> Hello! Should generateds_gui work with Python 2.7? Currently I have
> errors clearly showing the code is for Python 3:
> 
> $ generateds_gui.py
>   File "/home/phd/.virtualenvs/ufod2py/bin/generateds_gui.py", line 1517
> SyntaxError: Non-ASCII character '\xe2' in file 
> /home/phd/.virtualenvs/ufod2py/bin/generateds_gui.py on line 1518, but no 
> encoding declared; see http://python.org/dev/peps/pep-0263/ for details
> 
> $ generateds_gui
> Traceback (most recent call last):
>   File "/home/phd/.virtualenvs/ufod2py/bin/generateds_gui", line 6, in 
> <module>
>     from generateds_gui import main
>   File "/home/phd/.virtualenvs/ufod2py/bin/generateds_gui.py", line 5, in 
> <module>
>     from configparser import ConfigParser
> ImportError: No module named configparser
> 
> Should I try to fix that and send a pull request?
> 
> Oleg.
> -- 
>     Oleg Broytman            https://phdru.name/            p...@phdru.name
>            Programmers don't die, they just GOSUB without RETURN.
> 
> 
> _______________________________________________
> generateds-users mailing list
> generateds-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/generateds-users

-- 

Dave Kuhlman
http://www.davekuhlman.org


_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to