scrollbar

Vertical and Horizontal Scrollbars on Tkinter Widget

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-06 11:14:08
问题 I am trying to output the contents of a database to a Tkinter widget. The database has enough rows and columns to where I need to have both horizontal and vertical scrollbars enabled, but I am having a hard time getting horizontal and vertical scrolling to work simultaneously. I am agnostic about which Tkinter widget is used but here is my current implementation: # Create root self.root = Tk() self.root.geometry('1000x500+0+0') # Create canvas self.canvas = Canvas(self.root) self.canvas.pack

Vertical and Horizontal Scrollbars on Tkinter Widget

ぃ、小莉子 提交于 2021-02-06 11:13:52
问题 I am trying to output the contents of a database to a Tkinter widget. The database has enough rows and columns to where I need to have both horizontal and vertical scrollbars enabled, but I am having a hard time getting horizontal and vertical scrolling to work simultaneously. I am agnostic about which Tkinter widget is used but here is my current implementation: # Create root self.root = Tk() self.root.geometry('1000x500+0+0') # Create canvas self.canvas = Canvas(self.root) self.canvas.pack

Making a tkinter scrollbar wider

徘徊边缘 提交于 2021-02-05 09:47:01
问题 I'm coding in Python 2.7/tkinter in Windows and am putting a scrollbar on a listbar, which I can do easily enough (thanks effbot.org). However, I also want to make the scrollbar wider - it will be used on a touchscreen so the easier it is to select it, the better. I figured the width attribute would make it wider, but all it does is create some blank space. What am I doing wrong here? Code: from Tkinter import * top = Tk() scrollbar = Scrollbar(top, width=100) scrollbar.pack(side=RIGHT, fill

Making a tkinter scrollbar wider

时光怂恿深爱的人放手 提交于 2021-02-05 09:46:36
问题 I'm coding in Python 2.7/tkinter in Windows and am putting a scrollbar on a listbar, which I can do easily enough (thanks effbot.org). However, I also want to make the scrollbar wider - it will be used on a touchscreen so the easier it is to select it, the better. I figured the width attribute would make it wider, but all it does is create some blank space. What am I doing wrong here? Code: from Tkinter import * top = Tk() scrollbar = Scrollbar(top, width=100) scrollbar.pack(side=RIGHT, fill

Scrollbar in python tkinter Toplevel() shows up but does not scroll

那年仲夏 提交于 2021-01-29 19:24:07
问题 I have looked through all the answered questions available here but to no avail. I'm working on Mac OS X High Sierra and my Scrollbar widget shows up but doesn't scroll the window, any advice? from tkinter import * root = Tk() root.geometry('400x500') root.resizable(False, False) def window(): popup = Toplevel() vertScrollbar = Scrollbar(popup, orient='vertical') vertScrollbar.pack(side='right', fill='y') scrollCanvas = Canvas(popup, width='400', height='500', yscrollcommand=vertScrollbar.set

How do I stop the page from expanding when animating an element so it slides in from off screen?

白昼怎懂夜的黑 提交于 2021-01-29 09:27:51
问题 I'm making my first website and I've run into a problem I can't easily fix as I'm not sure how to phrase a google search for it. I need to slide images into the page without making the scroll bar appear or, rather, without the page expanding in width to encompass the newly appeared image while it slides in. Here's the actual test version of the page: http://test.dingac.com/accommodation.html The part I need help with is the sliding of the pictures when you click on the arrows next to the

Xamarin.Forms: how to automatically hide first CollectionView

ⅰ亾dé卋堺 提交于 2021-01-29 05:10:15
问题 I work on a Xamarin.Forms app that will contain a page with 2 CollectionView items: an horizontal CollectionView that will display events a vertical CollectionView that will display posts I would like that the first list is progressively hidden as soon as the user starts to scroll on the second list. We can found this behaviour on a sample from Syncfusion : but they use a SfRotator as control for the horizontal list: I've tried to reproduce the same behaviour on my page, but it doesn't work

Why do I have scroll bars on my website when there shouldn't be?

旧街凉风 提交于 2021-01-28 18:00:08
问题 I'm making a discord server website for people to find discord servers to join and make friends but, I dont know why my web page has a horizontal scroll bar. It also has a vertical scroll bar and it shouldn't have that yet here is my HTML and CSS HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> <title>OnTop Servers</title> </head> <body> <nav class="topnav"> <div

Visual Studio vertical scrollbar changes length based on amount of text on-screen

筅森魡賤 提交于 2021-01-28 12:02:16
问题 [VS Enterprise 2017, 15.9.14] I just noticed this - not sure how long it has been happening. When I am editing code (any type I have seen so far - plain text, .cs, .xaml) the vertical scroll bar will change length, based on the relative amount of text characters which happen to be visible in the window. I don't like this functionality - I just want the size to be constant, based solely on the number of lines of text in the file. I have a number of extensions installed (Productivity Power

Nesting flexbox inside flexbox overflow. How to fix this?

こ雲淡風輕ζ 提交于 2021-01-28 08:03:48
问题 So I was trying to get a header and some content to fit into the screen by having a div #main with height: 100% as a flexbox, just like this: #main { height: 150px; /* Using a fixed height here, otherwise the snippet wouldn't work */ } .flexbox { display: flex; flex-direction: column; } .header { flex: 0 1 auto; border: 2px solid #aa0000; } .content { flex: 1 1 auto; border: 2px solid #00aa00; } .scrollable { overflow-y: scroll; } <html> <body> <div id="main" class="flexbox"> <div class=