I created a label in kivy which contains a lot of information. It comes under a scrollview widget hence becoming a scrollable label. But since it has a lot of information it turns black and doesn't display anything. Also it has text with font roboto and size 30. I believe this is causing the error. Also it seems to not raise any error.
Could anyone help me overcome this problem?
Thanks
Use a ScrollLabel instead, it was created specifically to avoid this problem.
Related
I'm curious if it's at all possible to have the icons in MDBottomNavigation not scale with the window of the application? I would like it to act almost the same as DaVinci Resolve if anyone has used that program. Where the icons are in a fixed position and size regardless of the window size. Any ideas would be appreciated.
For reference, I'm using a .kv file not just writing everything in python.
I know that this might sound weird, but I have a problem considering the screen resolution of my Tkinter program. I have attached two pictures for a comparison.
I think you can clearly tell, what I'm talking about. The problem is that I don't really know why this happened. Suddenly the tkinter window had a way better resolution as you can see in the top picture. I did not change anything related to screensize/resolution by myself and was therefore expecting Tkinter to have published an update which just has better textures for every widget.
But because I had to reinstall python and all its modules this is no longer the case and the widgets look very blurry again (Bottom picture). Now I'm asking myself whether this has something to do with another version of Python or tkinter I'm using or what else could have been the reason for that.
I did not change my PC, Screen or anything like that. I just reinstalled python and its modules. Sadly I don't have the source code of the version where it looked great, but only an .exe file, because im continuously updating my program. But as I said before, I don't know what I could have changed which led to this huge resolution improvement.
I hope you get, what I'm trying to tell you.
Thanks in advance!
I was able so solve it!
I had a look on this question: on Stackoverflow
The answer from #binaryfunt solved my problem completely. So it was not really a tkinter/python thing, but rather windows itself.
I'm following a tutorial on making a roguelike in python, and it's actually coming along pretty nice. However, I have come to a small graphical issue: for the player and enemies, they all have a black background on them, which I don't want. I've tried changing the background to none anywhere I can, but I can't seem to figure out how to fix it. I'd really appreciate if anyone could help me out with this. Below is a link to an image showing this problem:
Also, if it helps, I'm using notepad++ and libtcod.
Thanks.
Hmm, you probably need to set the background flag. Or at least give it the proper color. So try to override it.
When you print a character it needs both foreground and background.
In any case you should probably look into object.draw() player.draw()
[SOLVED]
I found that I overlooked one of the parameters in the object.clear() event, and all I had to do was check if the object was visible, and if it has been explored yet to determine which background color to set it to.
Thanks to everyone who replied and gave their input!
I am trying to make a widget exactly like this,
I want mine to be exactly the same (same font, picture, ect). Does anyone know how I can do this? I think it is a wx.ListCtrl but I cant find an example on how to make it look like this.
Can you provide me an example on how to make this widget?
Thanks.
It's a report list. Don't forget to keep a reference to the image list yourself since the bindings are stupid and don't incref it when you assign it to the list.
If the widget brings up different panels when you click on the image, then it's probably a Listbook, not a ListCtrl. Plus those are images from the wxPython demo for the Listbook AND the Toolbook AND the Treebook demos, so I'm guessing it's one of those.
I want to set the resolution of my application as per the resolution of the system screen its running on. i want to be on top and also in full screen covering even the taskbar as i am using windows. i want the app to open like the ATM interface, so the app should fill the entire screen.
please help me to find the solution.
thanks
The frame object has a "ShowFullScreen" method that you could use. I just tested it and it works alright, although it doesn't show the title bar of the app. I don't know if you care about that though.
EDIT: Uh, to call a method on the frame object, you would do something like
self.ShowFullScreen(True)
or
myFrame.ShowFullScreen(True)