Timeframe and sample size option - Tkinter tutorial Python 3.4 part 14

preview_player
Показать описание

In this GUI programming tutorial, we cover how to add time frame and sample size options.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

As can been seen in this video there is a small bug in the code. In the changeSampleSize function you need to assign the input variable size to resamplesize before the if statement. Otherwise the first time you change the time frame and then the resamplesize, the resamplesize won't update and hence the popupmsg won't display.

This is the correct implemantation of the changeSampleSize function:
def changeSampleSize(size, width):
    global resampleSize, datCounter, candleWidth
    resampleSize = size    
    if dataPace =="7d" and resampleSize == "1Min":
        popupmsg("Too much data chosen, choose a smaller time frame or higher OHLC interval")  
    elif dataPace == "tick":
        popupmsg("You are currently viewing tick data not OHLC.")
    else:
        datCounter = 9000
        candleWidth = width

wouterdroog
Автор

Sir, here is nothing
error !! But why it's still not showing any output or PyShell not responding? plz help!

soumensarker
Автор

After adding other things onto the menu, the window comes up to be very tiny. What happened? I am on Ubuntu. Thanks.

nguyentnhoang
Автор

I can't get any of these functions to do anything, nothing changes when I click on them. Where is the code for this, it's really hard to follow now that it is getting larger, I have clearly missed a vital part, but can't find it.

iFunktion
Автор

Hello, i am new to tkinter. I just want to ask if it is possible to put a gif in the background of the gui?

chnnz
Автор

Hi sir, how to add image in there Frame?

pichiful
visit shbcf.ru