Giter VIP home page Giter VIP logo

awesometkinter's People

Contributors

aboghazala avatar firedm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

awesometkinter's Issues

النص مقلوب من الأسفل إلى الأعلى

image

السلام عليكم


    root = tk.Tk()
    txt = 'السلام عليكم'

    # text display incorrectly on linux
    dummyvar = tk.StringVar()
    dummyvar.set(txt)
    tk.Label(root, textvariable=dummyvar, font='any 20').pack()

    # uncomment below to set a rendered text to first label
    dummyvar.set(render_bidi_text(txt))

    entry = tk.Entry(root, font='any 20', justify='right')
    entry.pack()

    lbl = tk.Label(root, font='any 20', wraplength=300)
    lbl.pack()

    # adding bidi support for widgets
    add_bidi_support(lbl)
    add_bidi_support(entry)

    # we can use set() and get() methods to set and get text on a widget
    entry.set(txt)
    lbl.set('لغتنا الجميلة، كان هذا عنوان إحدى البرامج الإذاعية و الذي كنا ننتظره و نتعلم كيفية نطق لغتنا العربية الأصيلة بكل ما فيها من كلمات و معاني')

    root.mainloop()

الكلام مقلوب من الأسفل للأعلى عند استخدام render_text مع wraplength في label

diacritical marks does not display in widgets

when displaying Arabic text in widgets it works fine:

add_bidi_support(TxtEntry)
TxtEntry.set("ملف فاضي")

without_tashkeel

but if text contains some Tashkeel it fails:

add_bidi_support(TxtEntry)
TxtEntry.set("مَلفٌ فَاضِيٌ")

with_tashkeel

Buttons and drop down menus

I can't seem to have Arabic letters to display correctly with buttons, drop down menus, and check boxes in Linux. Does AwesomTkinter only work with labels and text entries ? If not, can you please provide some examples.

Lacking license and tags

Is it possible to add a license ad a release tag to make it easier for packaging for example?

It would be quite nice, even desirable to retain diacritics

Hi there,
A few years ago, I needed to write a programme in JavaScript to output Arabic text as raw code to be incorporated in postscript documents, as lyrics below written music. For that purpose, preserving diacritics was essential.

I'm quite willing to share my code, or a detailed description of the algorithm. I'm rather new to Python, and only starting to get to know Tk. Hence, I'm finding it too intimidating to try and add the necessary code myself...

Best regards.

Hosam Adeeb Nashed

About the progressbar

I have a questioin about the progressbar. If I have changed the mode to 'indeterminate', the progressbar don't work. How should I change the code?

Inspiration

Hey, great work on the widgets. I thought if you needed some inspiration on additional widgets, you can checkout some of these from our GUI library:

image
image

button command

hey. i dont see any type to define function in abutton like command=smthg. how to do it?
`import tkinter as tk
from tkinter import ttk
import awesometkinter as atk

our root

root = tk.Tk()
root.config(background=atk.DEFAULT_COLOR)

it is recommended to select tkinter theme required for things to be right on windows,

'alt', 'default', or 'classic' work fine on windows

s = ttk.Style()
s.theme_use('classic')

3d frame

f1 = atk.Frame3d(root)
f1.pack(side='left', expand=True, fill='both', padx=3, pady=3)

3d progressbar

bar = atk.RadialProgressbar3d(f1, fg='cyan', size=120)
bar.pack(padx=20, pady=20)
bar.start()

3d button

atk.Button3d(f1, text='3D Button').pack(pady=10)

f2 = atk.Frame3d(root)
f2.pack(side='left', expand=True, fill='both', padx=3, pady=3)

flat radial progressbar

bar = atk.RadialProgressbar(f2, fg='green')
bar.pack(padx=30, pady=30)
bar.start()

atk.Button3d(f2, text='Button2').pack(pady=10)

root.mainloop()`

just tried example

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.