• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Display More on Python Print Module

Scheduled Pinned Locked Moved General Discussion
module
7 Posts 3 Posters 980 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    Extra 0
    last edited by Mar 13, 2022, 10:37 PM

    Hello,

    I’m using the Python Print Module by @sdetweil and I was wondering if there’s a way to have it print multiple lines (a long paragraph) and have it auto scroll on the screen?

    Right now, when my code needs to print out a paragraph, nothing will print out/display because it’s too long. So, I’m wondering I can display all that content in one shot?

    Thanks in advance.

    S 1 Reply Last reply Mar 13, 2022, 10:58 PM Reply Quote 0
    • S Offline
      sdetweil @Extra 0
      last edited by sdetweil Mar 13, 2022, 10:59 PM Mar 13, 2022, 10:58 PM

      @extra-0 don’t understand, won’t display.

      my code puts all the content in a div, it should display up to the bottom edge of the screen.
      and every python print sends a new bunch of text replacing the prior one

      I set the python script to not buffer stdout so the content should come thru immediately.

      but if u want to add scrolling, fork my repo and be my guest. youight be able to do it all with css transition… but I have trouble with that all the time.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Mar 13, 2022, 11:14 PM Reply Quote 0
      • E Offline
        Extra 0 @sdetweil
        last edited by Extra 0 Mar 13, 2022, 11:24 PM Mar 13, 2022, 11:14 PM

        @sdetweil It displays but it covers some of the other module’s contents on the screen. Is there a way to have it so it won’t cover the other content on the screen? ( Maybe modifying the width and height, make half of it fade, or send it to the back, behind the other modules?)

        Or perhaps I’ll make the long texts display in parts/sections (Through my python code)

        In my python code I also have some text print out with a TypeWriter effect (that doesn’t display to the Magic Mirror, because it rapidly prints one letter at a time).
        Is there a way to implement that so the python print module can print the text using the typewriter effect or does that have to be done through CSS?

        S 1 Reply Last reply Mar 13, 2022, 11:37 PM Reply Quote 0
        • S Offline
          sdetweil @Extra 0
          last edited by sdetweil Mar 13, 2022, 11:37 PM Mar 13, 2022, 11:37 PM

          @extra-0 you could set the size of the div thru css. the class is PythonPrint (see the example in the readme). but that will clip the content not scroll unless u add css classes to do that.

          otherwise it keeps going. this is just a web page

          as for typewriter mode, I think u can do that w css a Google search should help there.

          I don’t know, never tried any of those kinds of presentation

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Mar 13, 2022, 11:44 PM Reply Quote 0
          • E Offline
            Extra 0 @sdetweil
            last edited by Mar 13, 2022, 11:44 PM

            @sdetweil Alright, thanks for the insight.

            I’ll try some things out and see if I can get it working the way I want it to.

            K 1 Reply Last reply Mar 13, 2022, 11:48 PM Reply Quote 0
            • K Offline
              KristjanESPERANTO Module Developer @Extra 0
              last edited by KristjanESPERANTO Mar 13, 2022, 11:48 PM Mar 13, 2022, 11:48 PM

              Out of curiosity: I can’t find any Python Print Module on the list of 3rd party modules. Which one is it exactly?

              S 1 Reply Last reply Mar 14, 2022, 12:30 AM Reply Quote 0
              • S Offline
                sdetweil @KristjanESPERANTO
                last edited by Mar 14, 2022, 12:30 AM

                @kristjanesperanto it’s not on the list

                https://github.com/sdetweil/MMM-PythonPrint

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                1 / 1
                • First post
                  1/7
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy