Ask Question. Is there any data grid sample for tkinter? Feb 23 '10 1. Post Reply. Share this Question. Expert Mod 2. AruzV, Can you be more specific? Are you looking for an example of a Tkinter widget using the grid geometry manager? Feb 23 '10 2. I need a sample table viewer in tkinter like excell or any database viewer.
It must have Columns and rows and headers. Like this. Feb 24 '10 3. Have you tried to code this for yourself? Do you know anything about Tkinter?
Is this homework? I can provide code to parametrically build a grid like you describe, but we are not here to provide code to people without some effort on their part.
I attached an image of a grid of Tkinter. Entry widgets. The column and row headers are not modifiable. Characters can be entered into the open grids. Feb 25 '10 4. I am newer in python and tkinter. This is not my homework. I am not a student. I couldn't find any widget. There are some samples but they are not enough for me. Feb 25 '10 5. In that case, I have no problem posting sample code.
Type "demo" into one of the cells and tab out to see what happens. Expand Select Wrap Line Numbers. Feb 25 '10 6. Thanks bvdet this is helpful for me.Skip to content. Instantly share code, notes, and snippets.
Code Revisions 1 Stars 2 Forks 3. Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. DataTable widget for kivy. The dictionary should have the column headers as keys, and then the associated value is a list of data for that column. You may have lists of different lengths, but the columns will fill from the top down; therefore, include blank strings as placeholders for any empty cells.
Note that since the column headers are dict keys, you must have unique column names. If that fails, it'll just be a string. The initial type won't change, however. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. BooleanPropertyObjectProperty. For some reason, adding this property as part of a. The dictionary. You may have lists of different lengths, but the columns. Note that since the column headers are dict keys, you.
If that fails. The initial type won't.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Ok, after deeper analysis, it appear that nothing is wrong on our side.
No ttf that we are shipping is handling theses characters. If i use DevanagariMT. So i came to the conclusion that OS is building its own character table, and might use multiple font to be able to render all the characters.
Dunno how to fit that behavior into kivy, specially because we are relying on underlaying fonts. I'll put is in standby, need more reflexion.
I think the OS builds the missing code pages with methods like font-linking, where the missing code-pages in the font when accessed are replaced by the fonts that do have those code-pages. That's good enough right now but it would be even better if kivy supported these kind of fonts. A bolder approach would be to ask the platform's graphics provider to render the line, e. This way the platform can substitute glyphs from other fonts, plus do kerning, right-to-left scripts, and a few other typographical touches.
Actually, this is what we're doing. Even if i partially agreed about we could rely on platform, it would be harder to maintain that using external project because all the platform specific code need platform specific toolchain in most case. Using an external lib is less pain. It displays everything. This is the code I'm using to test, it should help us see if most of the major languages are rendered properly. Reply to this email directly or view it on GitHub: comment.
Right now, i would prefer to go to 2. Note that later, when theming will be implemented in Kivy, we could replace the default font everywhere more easily than today. That makes sense as even if the huge font is included, it might not please every-one as the glyphs might not be aesthetically pleasing.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. The Graph widget is a widget for displaying plots. It supports drawing multiple plot with different colors on the Graph.
It also supports a title, ticks, labeled ticks, grids and a log or linear representation on both the x and y axis, independently. To display a plot. First create a graph which will function as a "canvas" for the plots. Then create plot objects e. MeshLinePlot and add them to the graph. To create a graph with x-axis betweeny-axis between -1 to 1, x and y labels of and X and Y, respectively, x major and minor ticks every 25, 5 units, respectively, y major ticks every 1 units, full x and y grids and with a red line plot containing a sin wave on this range The MeshLinePlot plot is a particular plot which draws a set of points using a mesh object.
The points are given as a list of tuples, with each tuple being a x, y coordinate in the graph's units. You can create different types of plots other than MeshLinePlot by inheriting from the Plot class and implementing the required functions. The Graph object provides a "canvas" to which a Plot's instructions are added.
The plot object is responsible for updating these instructions to show within the bounding box of the graph the proper plot. The Graph notifies the Plot when it needs to be redrawn due to changes. See the MeshLinePlot class for how it is done.
Change button text value for on_press event in Kivy
Skip to content. This repository has been archived by the owner. It is now read-only. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up. Displays plots on a graph. Python Branch: master. Find file. Sign in Sign up. Go back. Launching Xcode If nothing happens, download Xcode and try again. Latest commit Fetching latest commit…. Graph The Graph widget is a widget for displaying plots.
To create a graph with x-axis betweeny-axis between -1 to 1, x and y labels of and X and Y, respectively, x major and minor ticks every 25, 5 units, respectively, y major ticks every 1 units, full x and y grids and with a red line plot containing a sin wave on this range:: from math import sin from kivy.
You signed in with another tab or window.
Reload to refresh your session.Original video. This is the standalone write-up of my third Kivy Crash Course video, linked above. In this entry, I head back to Python to add some more complex and interesting behaviour to our simple program from the first article. If you want to follow along, you can copy down the state of the code from the end of the first tutorial, as below.
You can also find it on github. So how are we going to change the app? The BoxLayout is a kind of layout that automatically places its children in a row, either horizontally the default or vertically. Now we have a plan, so lets create our new widgets.
We can add the following at the top of our build method:. Having created our new widgets, we need to add them to the widget tree of the existing build method. The above image is exactly the code from above, plus I moved the Scatter a little and typed into the TextInput.
Everything seems to work as expected. After that, you can replace the TextInput declaration with the following. The final layout change is to add the TextInput before the FloatLayout. The BoxLayout places its children in order from left to right if horizontal or from top to bottom if verticalso we need to add the TextInput first for it to be at the top of the screen.
With our layout all set up, we can move to creating the binding that will cause the Label to automatically update when text is changed in the TextInput. This is a very useful and general way to make things happen in response to changes e. Remember, l is our Label.
The setter method is available for any Kivy widget and some other Kivy objectsand it always returns a function that sets the given property. This could be a little confusing, but again I encourage you to experiment to see what happens.
A good exercise would be to replace the setter call with your own function that for instance prints its arguments to the terminal. This post has been a very quick introduction to some basic Kivy layout techniques, and a simple way to bind our own behaviours when widget properties change. You can download the finished code from the end of the article here. Introduction Original video This is the standalone write-up of my third Kivy Crash Course video, linked above.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. This is a Table widget for the Kivy library. For more information look at example file example. The Table widget is licensed under the terms of the MIT. Skip to content.
Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.
Please refer to the example below for details.
Editing through the popup widget in the kv file only changes the button label text, not the sqlite values. Is it possible to also change the database values when you edit the entries using the app. Learn more.
Asked 2 years, 5 months ago. Active 20 days ago.Creating a database, table, and inserting - SQLite3 with Python 3 part 1
Viewed 13k times. Thanks in advance. Martin Martin 1 1 gold badge 5 5 silver badges 27 27 bronze badges. Active Oldest Votes. Example main. Sign up or log in Sign up using Google.
Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. The Overflow How many jobs can be done at home?
Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Technical site integration observational experiment live on Stack Overflow. Triage needs to be fixed urgently, and users need to be notified upon…. Dark Mode Beta - help us root out low-contrast and un-converted bits.