Python Forum
[Kivy] Kivy text label won't shows up!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Kivy] Kivy text label won't shows up!
#1
I created a "Hello, Kivy" window but the text won't shows up Think
I used Pycharm64 & Python3.7 environment to run the code:

from kivy.uix.label import Label
from kivy.app import App
import kivy

# the minimum OpenGL version supported by Kivy:
kivy.require('1.9.1')

# defining app class:
class HelloKivy(App):
    def build(self):
        return Label(text="Hello, Kivy")

# running the window:
HelloKivy().run()
console log:

Output:
[INFO ] [Logger ] Record log in C:\Users\AVD\.kivy\logs\kivy_20-04-20_66.txt [INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.1.17 [INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.1.9 [INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.1.12 [INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.1.22 [INFO ] [Kivy ] v1.11.1 [INFO ] [Kivy ] Installed at "C:\Program Files\Python 3.7.3\lib\site-packages\kivy\__init__.py" [INFO ] [Python ] v3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] [INFO ] [Python ] Interpreter at "C:\Program Files\Python 3.7.3\python.exe" [INFO ] [Factory ] 184 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [Window ] Provider: sdl2 [INFO ] [Window ] Activate GLES2/ANGLE context [INFO ] [GL ] Using the "OpenGL" graphics system [INFO ] [GL ] Backend used <angle_sdl2> [INFO ] [GL ] OpenGL version <b"OpenGL ES 2.0 (ANGLE 2.1.0.b'')"> [INFO ] [GL ] OpenGL vendor <b'Google Inc.'> [INFO ] [GL ] OpenGL renderer <b'ANGLE (Intel(R) HD Graphics Direct3D11 vs_4_1 ps_4_1)'> [INFO ] [GL ] OpenGL parsed version: 2, 0 [INFO ] [GL ] Shading version <b"OpenGL ES GLSL ES 1.00 (ANGLE 2.1.0.b'')"> [INFO ] [GL ] Texture max size <8192> [INFO ] [GL ] Texture max units <16> [INFO ] [Window ] auto add sdl2 input provider [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked [INFO ] [Base ] Start application main loop [INFO ] [GL ] NPOT texture support is available [INFO ] [WindowSDL ] exiting mainloop and closing. [INFO ] [Base ] Leaving application in progress... Process finished with exit code 0

The output is just a black window, and the text is invisible
Huh

I have already posted the thread on StackOverflow:
https://stackoverflow.com/questions/6131...t-shows-up
Reply
#2
Finally, I got the solution

- The issue was due to my old integrated intel-made graphics card, arising conflicts with my os, and kivy!

- It was very hard to troubleshoot as Kivy and OpenGL claims to work correctly while the issue is still there!

- I should either purchase a new graphics card or try installing unofficial graphics driver if available to make kivy work well in my pc.

(credits ~ Snu at kivy discord)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,815 Jun-26-2022, 06:26 PM
Last Post: menator01
  update text variable on label with keypress knoxvilles_joker 3 4,886 Apr-17-2021, 11:21 PM
Last Post: knoxvilles_joker
  [Kivy] Kivy pop up shows duplicate buttons from main screen CEKinch 0 1,950 Feb-05-2021, 05:40 PM
Last Post: CEKinch
  How to read text in kivy textinput or Label jadel440 1 5,223 Dec-29-2020, 10:47 AM
Last Post: joe_momma
  [Tkinter] Python 3 change label text gw1500se 6 4,671 May-08-2020, 05:47 PM
Last Post: deanhystad
  [Tkinter] how to update label text from list Roshan 8 5,444 Apr-25-2020, 08:04 AM
Last Post: Roshan
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,745 Mar-20-2020, 07:21 AM
Last Post: deanhystad
  [PyQt] Ubuntu Taskbar icon shows title as "Unknown" while hover davidmuni 3 3,729 Jan-28-2020, 01:13 PM
Last Post: davidmuni
  [Tkinter] Label, align imported text from pandas kundrius 2 4,202 Dec-11-2019, 08:26 AM
Last Post: kundrius
  Make Label Text background (default color) transparent using tkinter in python barry76 1 23,718 Nov-28-2019, 10:19 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020