View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015026||Scribus||Scripter||public||2017-10-24 08:42||2017-10-26 20:23|
|Platform||x86, x64||OS||Ubuntu||OS Version||16.04.03 LTS|
|Target Version||Fixed in Version|
|Summary||0015026: Update CalendarWizard script|
|Description||There is a new script similar of CalendarWizard.|
This is an advanced script and it allows all user to make their own model easily.
Link to sources : https://github.com/Rapiiidooo/Calendar-Wizard
|Tags||No tags attached.|
CalendarWizard2.tgz (228,225 bytes)
||I'll check this out. We could certainly use an updated CalendarWizard. If it seems to be worthwhile, I'll probably add it to svn as a second version and see what feedback we get.|
||as this script uses tkinter, i think it won't work on macOS. (see https://bugs.scribus.net/view.php?id=12627#c34189)|
This seems to suffer from what Martin Zaske was just experiencing with his own script, that there is a big problem when you are trying to load files from a script. When I try to run it, it fails since it can't find croix.png, and since it uses all these SLA file "models", it's probably going to have trouble finding them as well. It's therefore even more complicated than the original CalendarWizard.
You might get a wiki account and make a wiki page about your script, so you can explain how it works and how to use it.
utnlk : Aïe aïe ... I didn't know this issue ... Is it on every macOS version ?
I'll have a check if I could change dependancies of tkinter to Qt ...
gpittman : In the git hub source page, there is a README with an explanation of this script, how it works, uses, and create model. (There is also a Doxyfile for scripter dev)
Which OS are you ? Because I never had this fails ... Did Martin Zaske found how to get around the problem or still working on it ?
And about the wiki, I tried to get an account but I'm still waiting for the response of email@example.com.
Anyway, yes I know I have to explain it on wiki and I will :-)
I'm using Fedora 26.
I download the tgz file, gunzip it, extract it, then run the script:
Traceback (most recent call last):
File "<string>", line 10, in <module>
File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2170, in <module>
File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2161, in main
TkCalendar(root).pack(side="top", fill="both", expand=True)
File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2149, in __init__
File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 1956, in make_frames
self.photo_frame3 = PhotoImage(file="./img/croix.png")
File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 3372, in __init__
Image.__init__(self, 'photo', name, cnf, master, **kw)
File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 3326, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open "./img/croix.png": no such file or directory
You've taken a 678-line original CalendarWizard.py and turned it into a 2170-line script, much more complicated. If anything, we'd like to get away from tkinter. As I look at the script, I don't know why it needs this croix.png file anyway, since it seems to only be used when there is no image in a frame, and Scribus already creates an X in an empty frame. Especially considering all these auxiliary files, I think it's better to use in ones own personal directory and not in the Scribus scripts directory, which many users will have a hard time finding if/when they want to create their own models.
Actually, I was wondering myself if this image was really usefull ... (And this is just to make it "beautiful")
It is absolutly not necessary. Then I removed it from the script and the source.
Can you please just try this new source and send me the traceback if you are getting an error ?
Sorry about double note.
Calendar-Wizard.tgz (277,689 bytes)
Now I can get it to begin, but there is some issue with adding models. I get the open file dialog, click a choice, and it says, "No such file ./models/whatever.sla" even though they seem to be there and I can open them in a text editor...
I wonder why you're using a tk file dialog and not an in-built Scripter one...
Are you trying to open the file at that point or just select the name for opening later?
I am openning them at this point just to get in the KEYWORD of each .sla => there is the "type" of calendar specified. The script can then sort them in the right category of listbox...
It's really annoying if you can not open the model ... because the main script idea is based to parse the model
|2017-10-24 08:42||Rapido||New Issue|
|2017-10-24 08:42||Rapido||File Added: CalendarWizard2.tgz|
|2017-10-24 13:04||gpittman||Note Added: 0044573|
|2017-10-24 18:04||utnik||Note Added: 0044574|
|2017-10-24 18:33||gpittman||Note Added: 0044575|
|2017-10-25 09:50||Rapido||Note Added: 0044578|
|2017-10-26 13:45||gpittman||Note Added: 0044594|
|2017-10-26 19:12||Rapido||File Added: Calendar-Wizard.tgz|
|2017-10-26 19:12||Rapido||Note Added: 0044598|
|2017-10-26 19:12||Rapido||File Deleted: Calendar-Wizard.tgz|
|2017-10-26 19:14||Rapido||File Added: Calendar-Wizard.tgz|
|2017-10-26 19:14||Rapido||Note Added: 0044599|
|2017-10-26 19:44||gpittman||Note Added: 0044600|
|2017-10-26 20:23||Rapido||Note Added: 0044601|