Friday, September 30, 2022

W_Smarter

 Maybe I'm just getting ahead of myself. Been reading up on SQLite -

which is SQl written in C - and one can access anything, if one passes the

appropriate command. Below:

                                                


                                                                                 


*     *     *






Thursday, September 29, 2022

Impassable

 Very dramatic footage of Hurricane Ian from the Sun UK (shot

by an architectural firm). You think it is bad, and then it is worse!!

Hurricane Ian update: Hundreds feared dead after Florida hit with 150mph winds & massive storm surge, sheriff says | The Sun


                                                *     *     *

My coding problem on tkcalendar seems impassable. the data is within functions

and inaccessible. I will trying again this afternoon, using a CSV file as data repo. 👩‍💻


                                                           *     *     *

For those wondering what is happening with respect to the GST bonus payment, the bill

has been referred to committee:

 


The bill on Dental Care and Housing payment is less advanced: still in Second

Reading:

                                                                   

I looked both of these up by Bill number, in the FIND rubric:

Welcome to the House of Commons of Canada (ourcommons.ca)

Wednesday, September 28, 2022

Hover Problem

 An interesting spill-over from game development in Python, one

can find out where a player has clicked within a widget. A bind on Button-1

is a left click. Below:

                                                  




Not sure this will solve the 'hover over for event' problem, but it is interesting!!

Below, entering the date manually:
                                                                               

Tuesday, September 27, 2022

Banana

 Been using the DateEntry widget that comes with tkcalendar,

and an events text list, and StringVar() with trace. Voilà:


                                                          


                                                      *     *     *

Found the following, on StringVar(), helpful!!


Poundbury


The New Yorker brought me here!!

Poundbury, Dorset - official guide to visiting, living or working in Poundbury

                                                                   


                                                                                 



Some purists are upset by the artificial admixture of different styles, all

built at once. A REAL city has a history, was situated because of its proximity

to a river, trade route...So Pbury may not have historical significance for the

current generation. But it might have some for the future 🙂

Saturday, September 24, 2022

AWhile

 Feeling burnt-out on this alendar effort. Think I will

live with this version, for a while...


                                                              





                                                                    *     *     *

Trying to get a tooltip working...

                                                                   

                                                                              



                                                                            

                                                                            

Second Reading

 Things can move quickly, when well orchestrated. The two

parts of the new Affordability measures (dental care for children,

housing payment... GST increase) are at second reading

for next Monday.:


                                   


Bit of Progrress

 More progress: the Activate function now shows all the days with events.


I'm currently running the select function twice ‽

Did crack data retrieval from Sqlite: all the dates are at tuple[0] on

their respective rows...

                                                             


                                                              *     *     *

Of course, there is an easier way. Creates a csv(comma separated value) text file 

of the DB from code found on the Web:


                                                                   


                                                                  



Thursday, September 22, 2022

Connected

 Tkcalendar is now connected to a sqlite databas:


*     *     *

It's really rather clever how the database works. The whole open-to-close protocol

for SQlite is invoked initially to create the DB, then the creation part is commented

out: no overwrite problem. Subsequently, one opens and closes the connection

on each function that interacts with it. 


What I had trouble with was getting the date as a datetime.date object type.

This is what the tkcalendar code requires to create a calevent and turn the date

pink. Turns out there is a built-in function for this within the datetime module. 

Below:



The Set_State function is on the Activate button. The calendar is initially

unresponsive and needs to be 'activated'. Paff! the date turns pink...

                                                               

There is more work to do, like getting the Set_State function loop through

all the dates, with a variety of tag colors. Might keep it to two!


The layout needs work. I ended up putting the calendar image in a Frame on the

top of the page, which doesn't disturb the grid settings lower down. Need to

get clear on how to dispose and align things...



B_Rates

 The Uk today, just raised its Bank Rate as well. They are at 2.25.

Bank of England says UK in recession as it raises interest rates to 14-year high of 2.25% – business live (theguardian.com)

The UK and EU tend to keep a lower BR than we do, in North America. Looking to

the Internet for a possible reason, I found the argument that they experience a greater

influx of money from Easter Europe and Asia which is best channelled into real estate and the

like...‽

                                                                *     *     *

Today is the autumn equinox; in theory when the length of the day equals that of the night.

So this morning, I was wondering why today where I am - Montreal region - is getting a few

more minutes of day than night. 


Turns out the equilux - phenomenon of equal light - is not the same as equinox. This

has to do with the way sunrise and sunset are measured, as well as how light diffracs.


Today 2022-09-22:

                                         



Next Monday 2022-09-26:


                                        


https://www.timeanddate.com/astronomy/equilux.html


ENJOY THE FALL!!

Wednesday, September 21, 2022

WorkingDB

 Another day, another annoucement. Waiting on the US Fed to inform us

of its latest interest rate hike...


                                            *     *     *

Have a fully functionning DB interface - thanks to Codemy - and looking

to merge this code with tkcalendar. Will need to take this one step at a time!!


                                               


*     *     *


*     *     *

I've made three changes:

1-The entries now lists by  date:




2- Created a clear the db function, which destroys and rebuilds it, thus

stating over at id=1.

                                                             


3- Found the solution to the DB only updating after being closed ( this from

a French school manual). One needs to close the cursor as well as the connection.

Tuesday, September 20, 2022

Sombre

 Waiting on the Canadian CPI numbers at 10:00 this morning. What am I working

on this sombre Tuesday. Doing some tutorials with Codemy on database Guis,

(from Las Vegas 👩‍🦳):

                                                         


Slowly getting there...

                                                                *     *     *

Consumer Price Index numbers, from the Bank of Canada:

                                                                



Monday, September 19, 2022

In Memory

 British Vogue published photos of HRM the Queen last April. Below:


31 Iconic Photos of Queen Elizabeth | Vogue


                                                        *     *     *

Was happy to find a built-in Python program for finding the number

of days between dates!!




Sunday, September 18, 2022

London Live

 It is possible to view mourners as they go by the Queen's coffin, from the Sun UK

website:



News, sport, celebrities and gossip | The Sun

Saturday, September 17, 2022

He's Back!!

 It took Casey Neistat to reconnect me to this lovely song!!



Friday, September 16, 2022

Still_Out

 Switched to Python(3.10) this morning, and it was no party!! The .tix tooltip

doesn't work at all .Thankfully, the new version of ToolTip does I imported does. 

Still going to need some time to get all this together...


                                                           


                                                                    


                                                                             


                                                                               


Thursday, September 15, 2022

Time_Out

 This might be as far as I can take things, at the moment. I need to

look at gow the rpos would put all this together... Time_Out!



                                                                           

                                                                                  




                                                                                 


                                                                     

                                                                         


Wednesday, September 14, 2022

StingVar

 And here it is: the infamous StringVar() in action. I elect a date,click

the button, and the date appears!


                                                       


                                                                                    


Now - tomorrow - I need to make the event appear in the .tix balloon...


                                                          *     *     *

Working with the date as a sting object, which is updated

thanks to th trace() method. Not button is needed (indeed the calendar

dates are buttond).