Skip to main content

All Questions

0 votes
1 answer
65 views

Kivy split label layout div sizes

I am currently trying to implement a custom widget that can have two colors in its' text. It almost works but I have two questions, the first one is: why is there a gap between the green and red ...
ohshit's user avatar
  • 47
0 votes
2 answers
94 views

How to I exactly the position of a kivy text label on a canvas?

I have designed the following in figma. I have created a 500px x 500px window and a widget. I want to place the "in motion" text 160px from the left and 207px from the top. figma design For ...
Constantin Scholz's user avatar
1 vote
1 answer
824 views

Kivy MD: How to switch between different layouts using MD Tabs

I'm trying to design a user interface in Python / Kivy MD. The layout should include a MDTab with some icons on top, a button at the bottom and some widgets in the middle. By clicking on the tab icons,...
eljamba's user avatar
  • 407
0 votes
1 answer
97 views

Side-by-side Labels in StackLayout: Why is second label missing? (kivy, python)

How can I display two labels side-by-side in a Kivy StackLayout? Consider the following code #!/usr/bin/env python3 from kivy.uix.button import Button from kivy.lang import Builder from kivy.app ...
Michael Altfield's user avatar
0 votes
0 answers
126 views

Delete a row in Kivy's BoxLayout

With Kivy, I want a layout that is different when the window size is portrait or landscape (a grid of buttons, and for exemple the buttons on a row are shown in a column). I tried first to hide some ...
FredericP's user avatar
  • 1,119
0 votes
0 answers
168 views

BoxLayou duplicates on Kivy

I am designing an app to help in the learning of literacy. My idea is to display a screen similar to the following:My idea But when I run, it duplicates, even, quadruples the BoxLayout and I can't ...
David Sánchez Cruz's user avatar
1 vote
1 answer
66 views

Centering Tesselator Shape in Kivy

Well I am using an 'experimental' feature in kivy called Tesselator (https://kivy.org/doc/stable/api-kivy.graphics.tesselator.html). Currently my app draws a wee shape in the bottom left. It doesn't ...
HaggisBishop's user avatar
0 votes
2 answers
392 views

Kivy - Timer Integration in FloatLayout

The issue is a simple one, getting Kivy to integrate the Timer1 code as a label in FloatLayout. I have this .py file: import kivy kivy.require('1.10.0') from kivy.lang import Builder from kivy.uix....
nuggetchris's user avatar
2 votes
1 answer
6k views

Python kivy md Navigation Bar placement?

I am trying to restructure the kivymd project file but I am not able to place the navigation bar at the place at which it is normally. I cannot see why this is happening (see pictures and code below). ...
MrYouMath's user avatar
  • 613
5 votes
3 answers
8k views

How to set a label position to border in Kivy?

Hi i have problems with positioning of my labels in Kivy. I think pictures can describe my problem best. How it looks like now... How I want it looks like... I want to bind the Label 3 to the right ...
Em Bryo's user avatar
  • 73
0 votes
1 answer
206 views

Is there any way to add a widget above the parent(Layout)?

Hey i recently started with python / kivy programming. I have a basic question which can not be solved with the documentation i found. I wanna add a self defined function (InitiateGraph) above my ...
Marcus's user avatar
  • 13
0 votes
2 answers
301 views

Force FloatLayout to be square?

I have a floatlayout with some widgets inside: fl = FloatLayout(size=(600,600), pos_hint=({'center_x': .5, 'center_y': .5})) pos1 = ImgButton(source='zulgrey.png', ...
Code Cowboy's user avatar
2 votes
2 answers
1k views

multiple viewclass (Kivy - Recycleview)

I'm implementing a recycleview in kivy. It is possible have multiple (one or more) viewclass depending the dataset data? i would like to have in the same list multiple layouts (eg. one line viewclass1 ...
abutre's user avatar
  • 21
0 votes
1 answer
4k views

Python (Kivy) - How to resize tabs of a TabbedPanel

I'm using the Kivy library for the first time and I'm trying to develop a simple UI with a TabbedPanel. I would set the size (x) of each tab (in the code TabbedPanelItem) to fit at the entire ...
Drakenden's user avatar