Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Universal(MACWINLIN) canvas pdf export
Post: RE: Universal(MACWINLIN) canvas pdf export

(Aug-12-2022, 11:26 AM)Gribouillis Wrote: I would try to draw in parallel a PIL image and the tkinter canvas like in this very old forum post. The pil image can be saved as pdf in modern versions of...
philipbergwerf General Coding Help 4 1,517 Jul-27-2023, 04:37 PM
    Thread: How to code a musical slur in python tkinter?
Post: How to code a musical slur in python tkinter?

Hello, not good at math haha. So I have a little app and I want to know how to create a good musical slur like in sheet music using tkinter canvas. In this example I used create_polygon() to draw a be...
philipbergwerf General Coding Help 0 541 Jul-27-2023, 04:21 PM
    Thread: How to properly scale text in postscript conversion to pdf?
Post: RE: How to properly scale text in postscript conve...

(Nov-07-2022, 01:15 PM)philipbergwerf Wrote: (Nov-07-2022, 12:28 PM)Gribouillis Wrote: Do you have an example postscript file that isn't well converted by ghostscript?In the zipfile a screenshot f...
philipbergwerf General Coding Help 3 1,119 Nov-07-2022, 01:30 PM
    Thread: How to properly scale text in postscript conversion to pdf?
Post: RE: How to properly scale text in postscript conve...

(Nov-07-2022, 12:28 PM)Gribouillis Wrote: Do you have an example postscript file that isn't well converted by ghostscript?In the zipfile a screenshot from the tkinter canvas and the result in postsc...
philipbergwerf General Coding Help 3 1,119 Nov-07-2022, 01:15 PM
    Thread: How to properly scale text in postscript conversion to pdf?
Post: How to properly scale text in postscript conversio...

Hi all, I have a question about Ghostscript postscript2pdf conversion. My setup is:drawing a drawing with text on the tkinter canvas exporting the drawing as postscript converting using ps2pdfwr or...
philipbergwerf General Coding Help 3 1,119 Nov-07-2022, 09:06 AM
    Thread: How to hardcode event.state? (tkinter)
Post: How to hardcode event.state? (tkinter)

I have a small question. if I print the key event while holding shift and control I see: <KeyPress event state=Shift|Control|Mod2 keysym=Left keycode=113 x=-165 y=572> But when I print event.sta...
philipbergwerf General Coding Help 1 1,601 Oct-24-2022, 12:55 PM
    Thread: How to break out of a for loop on button press?
Post: RE: How to break out of a for loop on button press...

Thank you all for these examples! I managed to get it working using a thread :)
philipbergwerf General Coding Help 6 1,740 Oct-06-2022, 03:12 PM
    Thread: How to break out of a for loop on button press?
Post: How to break out of a for loop on button press?

from tkinter import * # root root = Tk() root.title('SeqTank') scrwidth = root.winfo_screenwidth() scrheight = root.winfo_screenheight() root.geometry("%sx%s+%s+%s" % (int(scrwidth / 1.5), ...
philipbergwerf General Coding Help 6 1,740 Oct-04-2022, 03:59 PM
    Thread: Universal(MACWINLIN) canvas pdf export
Post: RE: Universal(MACWINLIN) canvas pdf export

(Aug-11-2022, 09:11 AM)Larz60+ Wrote: perhaps you can find something useful here: https://pypi.org/search/?q=music+notation+pdf&o= or here: https://www.musicxml.com/music-in-musicxml/ A long tim...
philipbergwerf General Coding Help 4 1,517 Aug-12-2022, 10:56 AM
    Thread: Universal(MACWINLIN) canvas pdf export
Post: Universal(MACWINLIN) canvas pdf export

(I did a post earlier on this subject but I really want to find an answer on this) My app is almost finished! The only problem that remains is exporting my musical score to pdf. I want to build a uni...
philipbergwerf General Coding Help 4 1,517 Aug-11-2022, 08:37 AM
    Thread: Webapp for creating sheet music
Post: Webapp for creating sheet music

I want to make a webapp for creating alternative music notation and be able to export the drawing as pdf, print, edit etc... I am not so experienced so my question is: What are some good web framework...
philipbergwerf Web Scraping & Web Development 2 1,441 Jun-27-2022, 09:42 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

(Apr-29-2022, 06:43 PM)deanhystad Wrote: traceback is a module in the standard Python library. "import traceback" creates a variable named "traceback" that references the module. traceback.print_e...
philipbergwerf General Coding Help 14 3,368 Apr-29-2022, 07:31 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

(Apr-29-2022, 11:52 AM)Gribouillis Wrote: (Apr-29-2022, 10:37 AM)philipbergwerf Wrote: print('error: ', e)This statement may display very little debugging information. Consider using traceback.pri...
philipbergwerf General Coding Help 14 3,368 Apr-29-2022, 05:56 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

(Apr-27-2022, 06:58 PM)Gribouillis Wrote: philipbergwerf Wrote:What happens if there is a python error inside the render() function because I did not fix all bugs?A simple solution for this is to ca...
philipbergwerf General Coding Help 14 3,368 Apr-29-2022, 10:37 AM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

I concluded that it's not possible to draw a new element in tkinter canvas in the background. But I found a solution to the problem of hiding the render and scaling while rendering. The solution is to...
philipbergwerf General Coding Help 14 3,368 Apr-29-2022, 10:21 AM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

I have a follow up question that's connected. The problem I am facing now is that even on a one page score the user sees actually how the computer is drawing. It looks really cool at first but after a...
philipbergwerf General Coding Help 14 3,368 Apr-27-2022, 05:42 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

(Apr-27-2022, 10:45 AM)Gribouillis Wrote: I think you could improve this by using a Threading.Condition instance so that instead of a periodic loop, the thread simply sits waiting for user input wh...
philipbergwerf General Coding Help 14 3,368 Apr-27-2022, 04:54 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

(Apr-27-2022, 10:45 AM)Gribouillis Wrote: I think you could improve this by using a Threading.Condition instance so that instead of a periodic loop, the thread simply sits waiting for user input wh...
philipbergwerf General Coding Help 14 3,368 Apr-27-2022, 01:04 PM
    Thread: Waiting for heavy functions question
Post: RE: Waiting for heavy functions question

I made a solution that works really wel. In short it works like this: from tkinter import * import time from threading import Thread root = Tk() text = Text(root) text.pack() program_is_running = T...
philipbergwerf General Coding Help 14 3,368 Apr-27-2022, 09:07 AM
    Thread: Waiting for heavy functions question
Post: Waiting for heavy functions question

I have written a program that writes a music score based on a text file with a certain syntax. I use tkinter as gui and draw engine to draw the score and be able to export the score to pdf. It was muc...
philipbergwerf General Coding Help 14 3,368 Apr-26-2022, 08:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020