Featured

How Mature Are You?

Age alone does not an adult make. But what does? What makes you finally, really an adult? Adulthood is a social construct. For that matter, so is childhood. But like all social constructs, they have real consequences. They determine who is legally responsible for their actions and who is not, what roles people are allowed to assume in society, how people view each other, and how they view themselves. But even in the realms where it should be easiest to define the difference—law, physical development—adulthood defies simplicity.

You can’t drink until you are 21, but legal adulthood, along with voting and the ability to join the army, comes at age 18. Or does it? You’re allowed to watch adult movies at 17. In many countries kids can hold a job as young as 14, depending on state restrictions, and are even allowed to deliver newspapers, babysit, or work for their parents even younger than that.

Chronological age is not a particularly good indicator [of maturity], but it’s something we need to do for practical purposes. We all know people who are 21 or 22 years old who are very wise and mature, but we also know people who are very immature and very reckless. We’re not going to start giving people maturity tests to decide whether they can buy alcohol or not.

There is definitely no certain age at which maturity sets in. In my personal experiences, I’ve observed that age has little or nothing to do with it. I have met young people who are mature well beyond their years, and I’ve known older folks who act childish, only thinking about themselves. So the question is: What are the character traits that show maturity? And do “mature” people exhibit them 100% of the time?

Well, I’m not sure that we can be mature in every situation that presents itself to us because we are always growing and learning as human beings, and I’m pretty sure that all of us have been guilty of at least some of these negative behaviors at least once in our lives. That being said, by considering these 25 tell-tale signs, perhaps we can be more aware of the interludes in which our whiny, complaining, adolescent self rears its immature head…

1. Realizing how much you don’t know.

2. Listening more and talking less.

3. Being aware and considerate of others as opposed to being self-absorbed, self-centered, and inconsiderate.

4. Not taking everything personally, getting easily offended, or feeling the need to defend, prove, or make excuses for yourself.

5. Being grateful and gracious, not complaining.

6. Taking responsibility for your own health and happiness, not relying on others to “fix” you or placing blame for your circumstances.

7. Having forgiveness and compassion for yourself and others.

8. Being calm and peaceful, not desperate, frantic, or irrational.

9. Showing flexibility and openness as opposed to resisting, controlling, or being unreasonable.

10. Helping yourself, not just expecting others to do it for you out of a sense of entitlement.

11. Doing good deeds even when there is nothing in it for you other than knowing you helped, being selfless.

12. Respecting another’s point of view, beliefs, and way of life without judgment, not insisting you are right, belittling another, or using profanity or violence to get your point across.

13. Sharing your good fortune with others.

14. Being able to turn the other cheek without wishing harm on another.

15. Thinking before acting and having good manners, not going off half-cocked, lashing out, or being rude.

16. Encouraging and being supportive of others.

17. Finding joy in the success of someone else, not envy or criticism.

18. Knowing there is always room to grow and improve and reaching out for help.

19. Having humility and laughing at yourself.

20. Recognizing that which does not work in your life and making an effort to do something different.

21. Passing up instant gratification in favor of long term benefits.

22. Accepting, liking, and loving yourself, not needing someone else to “complete” you.

23. Standing up for fairness and justice for yourself and others and choosing to do the right thing.

24. Making sacrifices for the good of others without resentment.

25. Not clinging to materialistic items or bragging.

I’m sure there are probably other signs, but this list covers at least the majority of them. I know we can always do a better job displaying our mature sides. I also know that, by doing so, we lift each other up through our example. What’s most important, however, is seeing the negative side of our behavior and knowing we must do something positive to change it…And that, my friends, is WISDOM.

How to be Less Reactive

When we are emotionally reactive, we tend to be more stressed. We feel angry or often hurt because we react impulsively. Putting it another way, we overreact. Our perception of the existing situation confronting us becomes altered. This makes us prone to making the wrong decisions.

Correcting a misunderstanding is much harder than learning to think before acting. When in control of your reactions, you can better evaluate current situations, see better solutions, and establish rapport with other employees. 

So how can we stop being emotionally reactive?

1. Come From Curiosity, Not Conclusion
If you want to be more intentional in your response, slow your thinking down. Instead of drawing conclusions, ask questions to assess the accuracy of your conclusion. When you check your assumptions, stay open to being wrong, and assume positive intent about the other person, your interactions will take an entirely different turn.

2. Surround Yourself with Positive Thinkers
If it’s possible, surround yourself with people who are constructive in the way they think and feel. Whom you associate with has a powerful impact on how you perceive things. When a problem arises, and the folks you mingle with all give varying suggestions that result in cheerful ones, you are blessed. And you will statistically be less prone to stress.

3. Don’t Take Things So Personally
High reactivity often comes from elevated personal investment. In other words, when we take things personally. That’s a state of amygdala-hijack. First, breathe. Reclaim the brain. Second, shift perspective. People are usually clear on what they want from another person. When we are clear what we want for the other person, it allows us to take things less personally and be more deliberate. 

4. Learn How To Pause And Seek Clarity
This requires that you take some time prior to answering someone or stating your opinion. One of the most effective techniques is taking that simple pause: 10 seconds to inhale and exhale in lieu of blurting out the first thing that comes to mind. Consider asking a question to clarify what you’ve heard instead of giving an answer. It can save you from a bad assumption.

5. Think And Edit, Then Speak
Think, edit and then speak. Stop and ask yourself, “Is what I am about to say going to move the conversation forward for me, for them, and for the relationship?” If the answer is no to any of these pieces, then it’s time to take a deep breath and come back to it when the answer is a resounding yes.

6. Ask More Questions
A lot of the time, we are reactionary because we are making assumptions. Perception check with people you are communicating with to ensure the message sent is the message received. Ask about people’s reasoning or thinking rather than jumping to telling them what they did wrong. And listen: The power of listening is often the best communication tool.

7. Don’t Let a Bad Past Experience Induce Emotional Reactivity
A previous negative experience may form a prejudice in your mind, even one you may not be fully aware of having. Remind yourself that whenever you are reacting to something in the present, you may be making an assumption because of an experience in the past. Disconnecting our previous experiences from our present ones helps us stop being emotionally reactive.

8. Sleep Well
Your emotions and your ability to have enough sleep have an intimate relationship. Sleep deprivation makes you more emotionally aroused easily and more sensitive to stressful stimuli and scenarios (in a negative way).

Research has shown that enough sleep (6 to 8 hours) is essential to better cope with emotional reactivity in everyday situations. So when you need to stop working or whatever you’re doing because it’s bedtime, stop. The benefits far outweigh the cons.


Hope these tips help you on your journey to self-improvement and self-care. Let me know in the comments below if you have any other techniques that help you be less reactive!

Shoelace: A Framework-Agnostic Web Component Library

Web components were introduced in 2011, but if you ask most frontend developers, they aren’t their first choice for composing UI layouts. This is partly due to an increase in JavaScript frameworks, component-driven development enthusiasts, and other esoteric factors over the years.

Two key drawbacks of web components are:

  • Web components don’t follow native HTML behaviour. 
  • Issues with backward-compatability and SEO

Now, in comes Shoelace, a UI library built on web component technology that offers the same experience as any JavaScript framework but with better perks. It defines all your standard UX components: tabs, modals, accordions, auto-completes, and much, much more. They look beautiful out of the box, are accessible, and fully customizable. But rather than creating these components in React, or Solid, or Svelte, etc., it creates them with Web Components; this means you can use them with any framework.

With Shoelace, you can:

  • Start building things faster (no need to roll your own buttons)
  • Build multiple apps with different frameworks that all share the same UI components
  • Fully customize components to match your existing designs
  • Incrementally adopt components as needed (no need to ditch your framework)
  • Upgrade or switch frameworks without rebuilding foundational components

A Better Developer Experience

A huge advantage of using Web Components is that you get real custom HTML elements with a familiar API. Let’s compare the markup for a Bootstrap button and a Shoelace button.

<!-- Bootstrap -->
<button type="button" class="btn btn-primary">Primary</button>
​
<!-- Shoelace -->
<sl-button type="primary">Primary</sl-button>

Even with this simple example, you can already see there’s less code involved. This becomes even more obvious with complex components. Let’s take a look at dialogs. Here’s a Bootstrap dialog.

<!-- Bootstrap -->
<div class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p>Modal body text goes here.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

That’s a lot of markup! And there’s plenty of room for error with those aria attributes exposed.

Now let’s take a look at an equivalent Shoelace dialog.

<!-- Shoelace -->
<sl-dialog label="Dialog">
  <h3 slot="header">Modal Title</h3>
  Modal body text goes here.
  <sl-button slot="footer">Close</sl-button>
  <sl-button slot="footer" type="primary">Save Changes</sl-button>
</sl-dialog>

That’s much easier to work with! And there’s less room for error since the component handles its aria attributes internally. Pretty cool right?

Why Use It?

At this point, you’re probably wondering what sets Shoelace apart from other component libraries. For one, it’s framework agnostic, meaning you can use it in React, Vue, Angular, and any other framework you throw at it. This is perfect for teams that want to use different frameworks with the same components for a consistent UX.

Since Shoelace components are Web Components, they’re built on standards that browsers have committed to supporting for a long time. As old frameworks age and new ones emerge, you won’t have to spend time rebuilding buttons, inputs, and other low-level components. Shoelace will just keep working.

If you prefer to use the platform and avoid frameworks altogether, that’s fine too. Shoelace works great with vanilla HTML+JS!

And yes, Shoelace is open source and available under the MIT license, so it’s free to use and anyone can contribute to it!

If you’re interested in learning more about Shoelace, here are some links you’ll find useful!

7 Eye Opening Japanese Concepts

Japanese fans at the recent FIFA World Cup tournament  have been receiving praise for their admirable habit of cleaning up the stadium after their team’s matches. It’s commonplace to see Japanese fans, blue garbage sacks in hand, hanging back after the game to pick up the trash everyone has left behind in the stadium.

Did you know that some schools in Japan don’t even hire janitorial staff, as the students clean their schools themselves?

So what is it that compels Japanese fans to clean the stadium at the World Cup, despite the fact that there are people hired to do it already?

It generally comes down to one word: “atarimae” 

Atarimae isn’t easy to directly translate into English, but it basically means”natural” or “obvious” or “the norm.” Japanese fans may be getting a lot of attention for their cleaning habits, but they’re not trying to make some grand statement or gesture—for them, it’s simply a matter of course that one would clean up mess wherever they are.

Here are 7 Japanese concepts that have definitely transformed my life.

Ikigai
Discover your purpose in life.

Determine the reason you wake up each morning.

Choose something that aligns with your strengths, passions and the needs of the world.

Here is more on Ikigai


Shikara ga nai
Let go of what you cannot change

Recognise that there are some things that are just out of our control and that’s okay. Let go and focus on what you can change.


Wabi-sabi
Find peace in imperfection.

Recognise that nothing in life is perfect, including yourself and others

Instead of striving for flawlessness, find joy in the imperfection that make life unique.

Here is more on Wabi-sabi


Gaman
Preserve your dignity during tough times.

Show emotional maturity and self-control, even when faced with challenges.

Remember to be patient, resilient and understanding.


Oubaitori
Don’t compare yourself to others.

Everyone has a different timeline and unique path.

It’s important to focus on your own progress, rather than trying to measure yourself against others.


Kaizen
Always seek to improve in all areas of your life.

Even small changes can add up and make a big impact over time.


Shu-Ha-Ri
This is a way of thinking about how to learn and master a technique. There are 3 stages to acquiring knowledge:

Shu: Learn the basics by following the teaching of one master.

Ha: Start experimenting, learn from masters and integrate the learning into practice.

Ri: This stage focuses on innovation and the ability to apply your learning to a variety of situations.

Holy Family- The Model of All Families

Of all the families in human history, the family of Jesus stands above all others. This family is outstanding for its holiness, genuineness, understanding and acceptance of one another.

Not health, wealth, education, location or social status accounts for their place of prominence in human history. To the contrary, Mary and Joseph were poor. They were unschooled country people. Externally, they had nothing to distinguish them above any other Israelite of their time.

Internally, what distinguished them were their holy hearts and their close personal relationship with God. It is this that has given them lasting greatness. It is this that motivates us to look at them as a model family. They illustrate God’s plan for a family. They challenge all of us to pattern our homes after the heart of God.

The Holy Family is a model of faithfulness and love. They were totally devoted to God and his call on their lives. And, they faithfully followed their God-given vocations.

Their love for the Father and their desire to be faithful to him and to please him in all things was what also strengthened their love for each other.

They accepted God’s unique, individual plan for each of their lives and were obedient to His call. Mary accepted God’s plan to be the mother of Jesus. Joseph accepted taking Mary into his home and was obedient to being the foster father of God’s son. Jesus accepted the will of his Father which was often a difficult road to follow but one he followed in obedience.

The Holy Family also models forgiveness. And forgiveness leads to love. In fact, Jesus was the prime model for forgiveness as part of the Holy Family. For example, Jesus didn’t utter a single word in his defence against those who hurt him. Furthermore, he forgave those who put him to death.

So how can we model the Holy Family’s virtues in our own families? How can we take what we’ve learned from the Holy Family and apply it to our own life?

Pray together – First and foremost, as a family, our goal should be to draw each other closer to Christ. And, what better way to do so than through prayer?

Be Faithful to Your Vocation – Jesus, Mary and Joseph showed faithfulness to their vocation. And, we can do the same. Above all, try doing your duties without grumbling or complaining. This can be difficult, I know. Instead offer your vocation to the Lord. As married couples, we can model faithfulness by showing affection to one another, scheduling alone time, or by praying together. By doing so, we are being faithful to our marriage vocation and honouring the marriage covenant.

Honour Each Other – God wants us to honour each member of our family. For example, we can work on parenting our children with love instead of nagging. By the same token, we can show respect and love to our own parents, no matter what their age. Sometimes this is difficult as our own parents age and their health fails. But, no matter what stage of life we are in, God is calling us to be patient and to honour our family members as an act of faithfulness to him.

Accept Each Other – Oh how harmonious our family life could be if we learn to accept our family members without trying to change them! Just like the Holy Family, we are children of God. And we all have our own unique personalities. Similarly, God has a unique plan and purpose for each member of our family. So, not only do we need to accept God’s plan for our own life, but we need to accept that plan for others too.

Forgive Daily – This might be the hardest virtue of all to imitate. Because it’s all too easy to let a hurt fester and grow instead of choosing to forgive and let it go. I recently read a reflection that spoke about turning the family home into a confessional and not a courtroom. Meaning, let’s not become the judge and jury when it comes to our

family. Instead, let’s recognize that we all have imperfections and we are all sinners. When we do sin, let’s take it to the confessional of our homes. Let’s admit to any wrongdoing, ask for forgiveness, show mercy, and move on!

Be Present in Communication – The Holy Family certainly didn’t have as many distractions when it comes to communicating as we do today. It’s ironic that the very devices we use to communicate, such as cell phones, computers, and tablets, actually get in the way of us being present in our communication to one another. To emulate the Holy Family’s means of communicating, we can take simple steps like looking each other in the eye when we speak; putting aside our cell phones or any activity when someone is talking to us; And, basically just listen. To emphasize this point, on the Feast of the Holy Family, Pope Francis challenged all families to put their cell phones away during family meal time encouraging us to communicate just like the Holy Family did.

In this Christmas Season, let us pray that, inspired by the Holy Family, our families may grow in love and holiness.

Our Lady of Guadalupe

Our Lady of Guadalupe appeared in Mexico as the pregnant Mother of God to Blessed Juan Diego, an Aztec Indian, in 1531 on December 9, 10 and 12. She left a Miraculous Image of her appearance on his cactus fiber cloak, or tilma, which still exists today for all to see in the Basilica of Our Lady of Guadalupe in Mexico City.

Our Lady came to offer faith, hope and consolation to the oppressed natives of Mexico and to reconcile them with their Spanish rulers. She put an end to the bloody human sacrifice of the Aztecs and converted ten million natives in the next 10 years!

The Image of Our Lady is actually an Aztec Pictograph that was read and interpreted quickly by the Aztec Indians.

  • THE LADY STOOD IN FRONT OF THE SUN: She was greater than their dreaded sun-god “Huitzilopochtli”.
  • HER FOOT RESTED ON THE CRESCENT MOON:She had clearly vanquished their foremost deity, the feather serpent “Quetzalcoatl.”
  • THE STARS STREWN ACROSS THE MANTLE: She was greater than the stars of heaven that they worshipped.  She was a virgin and the Queen of the heavens for Virgo rests over her womb and the northern crown upon her head. She appeared on December 12, 1531 for the stars that she wore are the constellation of stars that appeared in the sky that day!
  • THE BLUE-GREEN HUE OF HER MANTLE: She was a Queen for she wears the color of royalty.
  • THE BLACK CROSS ON THE BROOCH AT HER NECK: Her God was that of the Spanish Missionaries, Jesus Christ her son.
  • THE BLACK BELT: She was with child for she wore the Aztec Maternity Belt.
  • THE FOUR-PETAL FLOWER OVER THE WOMB:She was the “Mother of God.” The flower was a special symbol of life, movement and deity-the center of the universe.
  • HER HANDS ARE JOINED IN PRAYER: She was not God but clearly there was one greater than Her and she pointed her finger to the cross on her brooch.
  • THE DESIGN ON HER ROSE COLORED GARMENT:She is the “Queen of the Earth” for she is wearing a map of Mexico telling the Indians exactly where the apparition took place.

And then there’s what Modern Science has to say about the tilma:
  • The image, to this date, cannot be explained by science.
  • The image shows no sign of deterioration after almost 500 years!  The tilma or cloak of Juan Diego on which the image of Our Lady has been imprinted, is a coarse fabric made from the threads of the maguey cactus. This fiber disintegrates within 20-60 years!
  • There is no under sketch, no sizing and no protective over-varnish on the image.
  • Microscopic examination revealed that there were no brush strokes.
  • The image seems to increase in size and change colors due to an unknown property of the surface and substance of which it is made.
  • According to Kodak of Mexico, the image is smooth and feels like a modern day photograph.  (Produced 300 years before the invention of photography.)
  • The image has consistently defied exact reproduction, whether by brush or camera.
  • Several images can be seen reflected in the eyes of the Virgin. It is believed to be the  images of Juan Diego, Bishop Juan de Zummaraga, Juan Gonzales-the interpreter and others.
  • The distortion and place of the images are identical to what is produced in the normal eye, which is impossible to obtain on a flat surface.
  • The stars on Our Lady’s Mantle coincide with the constellation in the sky on December 12, 1531. All who have scientifically examined the image of Our Lady over the centuries confess that its properties are absolutely unique and so inexplicable in human terms that the image can only be supernatural!

The Mouse & The Jar Of Grains

A “mouse” was put at the top of a jar filled with grains. He was too happy to find so much food around him. Now he doesn’t need to run around searching for food and can happily lead his life. As he enjoyed the grains, in a few days’ time, he reached the bottom of the jar. Now he is trapped and he cannot come out of it. He has to solely depend upon someone to put grains in the same jar for him to survive. He may even not get the grain of his choice and he cannot choose either.

Here are FOUR lessons to learn from this:

1) Short term pleasures can lead to long-term traps.

2) If things are coming easy and you are getting comfortable, you are getting trapped into survival mode.

3) When you are not using your skills, you will lose more than your skills. You lose your CHOICES.

4) The right Action has to be taken at the right time, or else you will lose whatever you have.

St. Nicholas – Santa Claus?

St. Nicholas was a Bishop who lived in the fourth century, in a place called Myra in Asia Minor (now called Turkey). He was a very rich man because his parents died when he was young and left him a lot of money. He was also a very kind man and had a reputation for helping the poor and giving secret gifts to people who needed it. 

The most famous story about St. Nicholas tells how the custom of hanging up stockings to put presents in first started! It goes like this:

There was a poor man who had three daughters. The man was so poor that he did not have enough money for a dowry, so his daughters couldn’t get married. One night, Nicholas secretly dropped a bag of gold down the chimney and into the house (this meant that the oldest daughter was then able to be married). The bag fell into a stocking that had been hung by the fire to dry! This was repeated later with the second daughter. Finally, determined to discover the person who had given him the money, the father secretly hid by the fire every evening until he caught Nicholas dropping in a bag of gold. Nicholas begged the man to not tell anyone what he had done, because he did not want to bring attention to himself. But soon the news got out and when anyone received a secret gift, it was thought that maybe it was from Nicholas.

Because of his kindness Nicholas was made a Saint. St. Nicholas is not only the saint of children but also of sailors! One story tells of him helping some sailors that were caught in a bad storm off the coast of Turkey. The storm was raging around them and all the men were terrified that their ship would sink beneath the giant waves. They prayed to St. Nicholas to help them. Suddenly, he was standing on the deck before them. He ordered the sea to be calm, the storm died away, and they were able to sail their ship safely to port.

No one really knows when St Nicholas died, it was on 6th December in either 343 (which seems to be the most probable), 345 or 352. In 1087, his bones were stolen from Turkey by some Italian merchant sailors. The bones are now kept in the Church named after him in the Italian port of Bari. On St. Nicholas feast day (6th December), the sailors of Bari still carry his statue from the Cathedral out to sea, so that he can bless the waters and so give them safe voyages throughout the year.

How much of what we hear of Santa Claus today is true? Here is what the Archdiocese of Bombay shared on their Instagram handle today.




St. Andrew

St. Andrew, also called Saint Andrew the Apostle, one of the Twelve Apostles of Jesus and the brother of St. Peter. He is the patron saint of Scotland and of Russia.

Source: Instagram – Archdiocese of Bombay

In the Synoptic Gospels (Matthew, Mark, and Luke), Peter and Andrew—whose Greek name means “manly”—were called from their fishing by Jesus to follow him, promising that he would make them “fishers of men.” With Saints Peter, James, and John, Andrew asked Jesus on the Mount of Olives for signs of the earth’s end, which inspired the eschatological discourse in Mark 13. In The Gospel According to John, Andrew is the first Apostle named, and he was a disciple of St. John the Baptist before Jesus’ call.

Source: Instagram – Archdiocese of Bombay

Do you know you can build Flutter apps in Python? 😮

I am guessing most of you have heard about Flutter. If not, here you go in just one sentence.

Flutter is an open-source framework by Google
for building beautiful, natively compiled applications
​​​​​​​from a single codebase
​​​​​​​for iOS, Android, Web, MacOS, Windows and Linux

Dart is the programming language used to code Flutter apps and at the start most developers find it a little hard to grasp. But once they are able to wrap their heads around it, they absolutely love it! However this article is not about Dart but Python! Let’s deep dive into the world of building flutter apps with Python! 

Say hello to FLET!

FLET enables developers to easily build real-time web, mobile, and desktop apps in Python.

The crazy thing is that no front-end experience is needed, and although the mobile version is still in development, we can still rely on the Progressive Web App.

Mind-blowing features of FLET

  1. It is powered by Flutter.
  2. You can bring an app to life in a few minutes.
  3. It has a simple architecture.
  4. Apart from Python, other languages like Go, C#, etc. will also be supported.

How to get start with FLET

To install FLET, you use this command if you are using a Python version less than version 3:

pip install flet

Otherwise you can use the following:

pip3 install flet

Now let’s build a simple application with FLET. We will be building a simple counter app that has one text field and two buttons, one to increment and one to decrement. Simple enough right?

First, we need to import FLET and other features essential for the counter App

import fletfrom flet import Row, icons, IconButton, TextField, Page;

We define the main function which is the root of our application and also set a title.

def main(page: Page):
page.title = "Counter App"
page.vertical_alignment = "center"

Next let’s arrange the widgets.

To add a widget, we use the page.add(widget…..).

For the rows of the app, we would consider theText Field and Buttons

page.add(Row([
   IconButton(icons.REMOVE),
   TextField(text_align="center",value="0", width=100)
   IconButton(icons.ADD)
  ],
 alignment="center")
)

Now, We define two functions that will handle the press events.





//Decrement
def minus(e) :
  tf.value = int(tf.value) -1
  page.update()
  
//Increment
def plus(e) :
  tf.value = int(tf.value) + 1
  page.update()

‘tf’ in the above functions refers to Text-field we placed into the Row.

The next thing, we used to the text-field value we have to wrap that within a variable itself.

Here is the overall code

import flet
from flet import Row, icons, IconButton, TextField, Page;
​
def main(page: Page):
  page.title = "Counter App"
  page.vertical_alignment = "center"
  tf =TextField(text_align="center",value="0", width=100)
​
#Functions
  def minus(e):
    tf.value = int(tf.value) -1
    page.update()
​
  def plus(e):
    tf.value = int(tf.value) + 1
    page.update()
​
#Widgets
  page.add(
    Row([
       IconButton(icons.REMOVE, on_click=minus),
       tf,
       IconButton(icons.ADD, on_click=plus)
    ],
    alignment="center")
  )
  
flet.app(target=main,view=flet.WEB_BROWSER)

The final part is to run the application which is the last line in the snippet above.

flet.app(target=main)

We add this command which directly targets the “main”

To run the app, type this command 

python filename.py

Below is what the UI looks like on web

Wasn’t that super easy? 

We are in very early days with FLET. Here is a link to their roadmap

And if you’d like to try some more apps, Flet has two tutorials: To Do app and Calculator app. (Click here)

Try them out and share your experience with me! 🙂

Feast of the Dedication of the Lateran Basilica

The Archbasilica of St. John Lateran is one of the oldest and highest ranking Papal Basilicas in Rome. Holding the unique title of ‘arch basilica’, it is defined as the “mother and head of all the churches of the city and the world”

Source: Archdiocese of Bombay (Instagram)

Most Catholics think of St. Peter’s as the pope’s main church, but they are wrong. St. John Lateran is the pope’s church, the cathedral of the Diocese of Rome where the Bishop of Rome presides.

Source: Archdiocese of Bombay (Instagram)

The first basilica on the site was built in the fourth century when Constantine donated land he had received from the wealthy Lateran family. That structure and its successors suffered fire, earthquake, and the ravages of war, but the Lateran remained the church where popes were consecrated. In the 14th century when the papacy returned to Rome from Avignon, the church and the adjoining palace were found to be in ruins.

Source: Archdiocese of Bombay (Instagram)

Pope Innocent X commissioned the present structure in 1646. One of Rome’s most imposing churches, the Lateran’s towering facade is crowned with 15 colossal statues of Christ, John the Baptist, John the Evangelist, and 12 doctors of the Church. Beneath its high altar rest the remains of the small wooden table on which tradition holds Saint Peter himself celebrated Mass.

Source: Archdiocese of Bombay (Instagram)

Unlike the commemorations of other Roman churches, this anniversary is a feast. The dedication of a church is a feast for all its parishioners. In a sense, St. John Lateran is the parish church of all Catholics, because it is the pope’s cathedral.