Giter Site home page Giter Site logo

tklog's Introduction

Log is just like a cup of coffee, and I like it anytime! :)

tklog

tklog: a thread-safe log widget based on tkinter (inherited from ScrolledText).

It can be packed into root or Toplevel window easily, and has a little power to log pictures (png and gif).

The log interfaces all have an argument named sync from V0.12, default is False. You should be very careful about this argument, you can never use it in GUI event loop. Normally, sync=True should only be set in background thread which needs synchronization. For example, you want to make sure the log interface would be blocked until after the log info is shown on text window.

winlog

winlog: a toplevel log window based on tklog, which creats a Toplevel window, contains a tklog widget, and has the ability to withdraw or destroy root.

sample test code

Read the sample test code, and you'll learn how to use tklog and winlog. And you can also run the sample test code:

$ python test_tklog.py tklog
$ python test_tklog.py winlog

Don't forget to try right click on the logging area. Maybe there's a surprise for you.

Below is a screenshot for winlog:

winlog.png

tkee

It's a GUI tee! Tee store output into a file, tkee show them in winlog! Try it:

$ cat tklog.py | python tkee.py
$ ping bing.com | python tkee.py

Have fun! ^____^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.