Social Icons

Tuesday, March 27, 2018

1 - The graphical User Interface (GUI) tkinter for Python

So far, we have only seen the Python programming under console, we can then wonder how can we manipulate windows with buttons, labels and input fields ...
Well, know that the developers of the Python language, have already thought about that. Python already integrates with its interpreter a free graphic library named Tkinter. Creating your Human Machine Interfaces with this library will allow you to have no library to download in addition to your code.
But if you want to integrate other graphic libraries, here are the most famous bibs:
  • Tkinter for Tk
  • wxPython for wxWidgets
  • PyGTK for GTK +
  • PyQt for Qt.
Note that each of these libraries has its own characteristics. As for us in this tutorial, we will limit ourselves to tkinter which is integrated in the Python language.

2 - Create a window with tkinter

2 - 1 - Create a simple window with tkinter

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a quick and easy way to create graphical applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolbox.
Creating a GUI application using Tkinter is an easy task. All you need to do is perform the following steps:
  • Import the Tkinter module.
  • Create the main window of the GUI application.
  • Add one or more of the widgets mentioned above to the GUI application.
  • Enter the main event loop, mainloop()
Here's the code that create a simple window:
from tkinter import *
my_window = Tk()
my_window.mainloop()

What displays after execution:

2 - 2 - Add a name to the window


To add a name to the window just add the instruction:
my_window.title ("my first window") 
Here is the code that creates a window with a name: "my first window"
from tkinter import *
my_window = Tk()
my_window.title("my first window")
my_window.mainloop()

What displays after execution:


2 - 3 - Define the dimensions of the tkinter window


To define the dimensions of the window, just use the geometry() method by adding the statement:
my_window.geometry ("width x height")
Here is the code that displays a window named  "my first window" and dimension 350 x 200 :

from tkinter import *
my_window = Tk()
my_window.title("my first window")
my_window.geometry( "350x200")
my_window.mainloop()
What displays after execution:

3 Tkinter widgets

The Tkinter library provides various controls, such as buttons, labels, and text boxes used in a graphics application. These controls are commonly called widgets.
There are currently 15 types of widgets in Tkinter. Here we present the names of these widgets and a brief description:
  1. Button: the Button widget allows you to create buttons for your application.
  2. Canva: the Canva widget allows you to draw shapes, such as lines, ovals, polygons and rectangles, in your application.
  3. Checkbutton: the Checkbutton widget allows you to display a number of options in the form of check boxes. The user can select several options at the same time.
  4. Entry: the Entry widget is used to display a single line text field for accepting values ​​from a user.
  5. Frame: the Frame widget is used as a container widget to organize other widgets.
  6. Label: the Label widget is used to provide a legend or description for the other widgets. It can also contain images.
  7. Listbox: The Listbox widget is used to provide a list of options to a user.
  8. menubutton: the menubutton widget is used to display the menus in your application.
  9. Menu: The Menu widget is used to provide various commands to a user. These commands are contained in Menubutton.
  10. Message: the Message widget is used to display multi-line text fields allowing to accept the values ​​of a user.
  11. Radiobutton: the Radiobutton widget is used to display a number of options in the form of radio buttons. The user can only select one option at a time.
  12. Scale: The Scale widget is used to provide a cursor widget.
  13. Scrollbar: The Scrollbar widget is used to add scrolling functionality to various widgets, such as list boxes.
  14. Text: the Text widget is used to display text on multiple lines.
  15. Toplevel: the Toplevel widget is used to provide a separate window container.
  16. Spinbox: the Spinbox widget is a variant of the standard Tkinter Entry widget, which can be used to select a fixed number of values.
  17. PanedWindow: the PanedWindow widget is a container that can contain any number of panes, arranged horizontally or vertically.
  18. LabelFrame: a labelframe is a simple container widget. Its main purpose is to act as a divider or container for complex window layouts.
  19. tkMessageBox: this module is used to display message boxes in your applications.



Younes Derfoufi
my-courses.net

Friday, March 23, 2018




The verdict fell on the repairability of Samsung Galaxy S9 and S9 + and unsurprisingly it is bad, as was already the case on the S8 and S8 +.

As usual, the iFixit site has launched on Samsung's new Galaxy S9 and S9 + to debone them to assess their repairability. A disassembly operation that has allowed iFixit technicians to see that it is not only outside that these phones look a lot like their predecessors, the Galaxy S8 and S8 +. Indeed, the similarities are numerous from a material point of view and their manufacture is very reminiscent of that of smartphones of last year.



Apple thinks an iPhone can replace a console. "Video games have always been one of the most popular categories in the App Store," continues the vice president. To highlight the new games available, the interface of the App Store has recently been updated. A tab is now entirely dedicated to mobile video games. The game of the day category also allows users to discover several paid titles daily. "Traffic on the App Store is rising significantly," says Greg Joswiak.



 AnTuTu has just put online several infographics. AnTuTu's numbers shed light on Android user preferences in the area of ​​RAM, screen resolution and size, internal storage and mobile OS.
AnTuTu, the benchmarking application, holds valuable data on Android smartphones. Each month, AnTuTu reveals the top 10 most powerful Android smartphones. Each year, AnTuTu also publishes the top 10 best mobile processors. This time, he decided to move away from smartphones to focus on their users. The infographics below are based on Chinese users but, as you will see, the trends are the same at home.

a way to create pair matching video games with AppsGeyser I realize, but this one is for my son. We each like googling FNAF images. but, there’s more to that. So, I determined to create an app for us to play collectively. It’s form of an exercising that proves that an interactive pair matching sport can be a number of amusing.


AppsGeyser is a web service that turns web content into Android application. Once the application is created - just copy the URL and then fill in a few fields; download it on your mobile.

The app can also enrich the AppsGeyser gallery, or be published on the Android Market! In short, an emergency test service.

Thursday, March 22, 2018

1 - Create a list in python

Creating a list in Python language is a trivial operation. To create a list, nothing is easier:

Example

>>> list = []

You can see the contents of the list by calling it like this:

>>> list

2 - Add a value to a python list

You can add the values ​​you want when creating the python list:

Example

>>> list = [1,2,3,4,7,11]
>>> list
[1, 2, 3,4,7,11]
Or add them after creating the list with the append method (which means "add" in English):

Example

>>> list = []
>>> list
[]
>>> list.append (1)
>>> list
[1]
>>> list.append ("a")
>>> list
[1, 'a']
We see that it is possible to mix in the same list variables of different types. 3 - Display an item from a list To read a list, we can ask to see the index of the value that interests us:
Example
>>> list = ["a", "b", "c"]
>>> list [0]
'a'
>>> list [2]
'c'
The first item always starts with the index 0. To read the first item we use the value 0, the second we use the value 1, etc. It is also possible to modify a value with its index :

Example

>>> list = ["a", "e", "g"]
>>> list [0]
'a'
>>> list [2]
'g'
>>> list [2] = "k"
>>> list
['a', 'e', ​​'k']

4 - Delete an entry from a python list 

4-1 - Delete an entry by its index 

It is sometimes necessary to delete an entry from the list. For this you can use the del function.

Example

>>> list = ["a", "b", "c"]
>>> del list [1]
>>> list
['a', 'c']

4-2 - Delete an entry by its value 

It is possible to delete an entry from a list with its value with the remove method.

Example

>>> list = ["a", "b", "c"]
>>> list.remove ("a")
>>> list
['b', 'c']

5 - Invert the values ​​of a list 

You can invert the items in a list with the reverse method.

Example

>>> list = ["a", "b", "c"]
>>> list.reverse ()
>>> list
['c', 'b', 'a']

6- Count the number of items & number of occurrences 

6 -1 - Count the number of items in a list 

It is possible to count the number of items in a list with the len function.

Example

>>> list = [1,2,3,5,10]
>>> len (list)
5

6 -2 - Count the number of occurrences of a value 

To know the number of occurrences of a value in a list, you can use the count method.

Example

>>> list = ["a", "a", "a", "b", "c", "c"]
>>> list.count ("a")
3
>>> list.count ("c")
2

7 - Find the index of a value 

The index method allows you to know the position of the item sought.

Example

>>> list = ["a", "a", "a", "b", "c", "c"]
>>> list.index ("b")
3

8 - Manipulate a python list 

Here are some tips for manipulating lists:

Example

>>> list = [1, 10, 100, 200, 300]
>>> list [0]
1
>>> list [-1] # Look for the last occurrence
300
>>> list [-4:] # Displays the last 4 occurrences
[300, 200, 100, 10]
>>> list [:] # Displays all occurrences
[10, 100, 200, 300]
>>> list [2: 4] = [5, 7]
[1, 10, 5, 7, 300]
>>> list [:] = [] # empty the list
[]

9 - Loop on a python list 

To display the values ​​of a list, you can use a loop:

Example

>>> list = ["a", "b", "c"]
>>> for letter in list:
... print letter
...
a
b
c
If you want also to recover the index, you can use the enumerate function:

Example

>>> for letter in enumerate(list):
... print(letter)
...
(0, 'a')
(1, 'd')
(2, 'm')
# The values ​​returned by the loop are tuples.

10 - Copy a list 

Many beginners make the mistake of copying a list this way
>>> x = [1,2,3]
>>> y = x
But if you change a value in the list y, the list x will also be affected by this change:
>>> x = [1,2,3]
>>> y = x
>>> y [0] = 4
>>> x
[4, 2, 3]
In fact this syntax makes it possible to work on the same element named differently So how to copy a list that will be independent?

Exemple: how to copy a list independently


>>> x = [1,2,3]
>>> y = x [:]
>>> # even if you change the values of y, those of x remain unchanged
>>> y[0] = 9
>>> x
[1, 2, 3]
>>> y
[9, 2, 3]
For more complex data, you can use the deepcopy function of the copy module

Example

>>> import copy
>>> x = [[1,2], 2]
>>> y = copy.deepcopy (x)
>>> y [1] = [1,2,3]
>>> x
[[1, 2], 2]
>>> y
[[1, 2], [1, 2, 3]]

11 - Transform a list into a string and vice versa 

11 - 1 - Transform a string into a list 

Sometimes it can be useful to turn a string into a list. This is possible with the split method.

Example

>>> my_chaine = "Mac: Lorenz: USA"
>>> my_chaine.split (":")
['Mac', 'Lorenz', 'USA']

11 - 2 - Transform a list into a string 

The opposite is possible with the "join" method.

Example

>>> list = ['Mac', 'Lorenz', 'USA']
>>> ":". join (list)
'Mac: Lorenz: USA '

12 - Find an item in a list 

To find out if an item is in a list, you can use the keyword in this way:

Example

>>> list = [1,2,3,5,6]
>>> 5 in list
true
>>> 17 in list
false

13 - The range function 

The range function generates a list consisting of a simple arithmetic sequence.

Example

>>> range (10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
14 - Extend a list by a list To put two lists end to end, you can use the extend method

Example

>>> x = [1, 2, 3, 4]
>>> y = [4, 5, 1, 0]
>>> x.extend (y)
>>> print(x)
[1, 2, 3, 4, 4, 5, 1, 0]

15 - Tips and tricks

Examples of various tricks

#Display the first 2 items of a list
>>> list = [1,2,3,4,5]
>>> list [: 2]
[1, 2]

#Display the last item of a list:
>>> list = [1, 2, 3, 4, 5, 6]
>>> list [-1]
6

#Display the 3rd element from the end:
>>> list = [1, 2, 3, 4, 5, 6]
>>> list [-3]
4

#Show the last 3 elements of a list:
>>> list = [1, 2, 3, 4, 5, 6]
>>> list [-3:]
[4, 5, 6]

#You can add two lists to combine them together using the +:
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> x + y
[1, 2, 3, 4, 5, 6]

#You can even mutiplier a list:
>>> x = [1, 2]
>>> x * 5
[1, 2, 1, 2, 1, 2, 1, 2, 1, 2]

#What can be useful to initialize a list:
>>> [1] * 4
[1, 1, 1, 1, 1]



Younes Derfoufi

Monday, March 19, 2018





The Google Play Store has an indisputable advantage on the Apple App Store, its website. Thanks to it, it's easy to discover new mobile applications and install them on your devices in a few clicks. If the application of the Play Store on Android regularly receives updates to improve its interface and navigation, this is not the case for the website that had not evolved for some time.

Sunday, March 18, 2018



It is a simple HTML editor, you can color the syntax: nodes, attributes, JavaScript, CSS, between the different syntaxes of web programming.



Presented at Google I / O's developer conference last year, Google Lens's artificial intelligence-enhanced image analysis technology is beginning its deployment on the iPhone and iPad.
After Google Photo for Android, it's time for its iOS counterpart to take advantage of Google Lens technology. The kickoff of this deployment was confirmed by Google yesterday on Twitter. It is unclear for the moment whether this function - currently available only in English - will also land in France in the coming days.

The connection is secure, easy and convenient when using Microsoft Authenticator. Use your phone, not your password, to sign in to your Microsoft account. Just enter your username and approve the notification sent to your phone. Your fingerprint, Face ID or PIN will provide a second layer of security in this two-step verification process. Then you have access to all Microsoft products and services, such as Outlook, OneDrive, Office and more.




Version          :  3.70
Licence          :   Free
Size                :   4.61 Mo
System OS    :  Windows 7/8 /10
Date               :  09 / 14 / 2012



Description
Fresh HTML is an HTML text editor that uses a simplified interface in WYSIWYG but has all the necessary tools for creating web pages. Like all similar software, Fresh HTML has functions of editing and personalization of writing, as well as insertion modules for images, buttons, tables, texts, comments, but also for Flash videos, scripts, playable audio files on QuickTime or Windows Media Player, other backgrounds and more. A palette of special characters and symbols is permanently accessible. At any time, you can view your project in your browser.


Apple recently announced its WWDC conference for the month of June, no one expected that the firm derives from its usual schedule with another event. Like what everyone can be wrong and Apple still knows to surprise the experts as the general public. The Cupertino giant has indeed sent a volley of messages to journalists to invite them to join them on "an excursion" devoted to education that will take place in a high school in the city of Chicago.

Sunday, March 11, 2018




If you have planned to format your hard disk to reinstall your operating system, or simply want to back up the drivers for your computer components, the free Driver Magician Lite software will help you back up the drivers for the various components of your PC. (sound card, motherboard, graphics card ...). You will be able to reinstall your computer much faster, having all the backups of the drivers on hand.



In future versions of Chrome, it will be possible to simply save your passwords in a text file.

If you're a Chrome user and do not remember all the passwords you've saved in your browser, there's finally good news for you! Google will soon allow users of its Chrome browser to export saved passwords directly into a text file. Convenient to find a forgotten password or transfer them to a password manager.


About Learn Programming App

The application was created for the purpose of thesis on "Interactive Handbook of Internet Technologies." It contains a list of all the elements used in HTML 5 Explanation, see the code of the browser and the source. which are then evaluated in the form of statistical tables Sand, where we can try to write code that automatically displays in the browser.


1 - Introduction

\section{HTML lists}

2 - Types of an HTML List

3 - Unnumbered HTML lists

Saturday, March 10, 2018



DroidEdit is a text and source code editor for android phone and tablets with the following features:

- Syntactic underlining for various languages ​​(C, C ++, C #, Java, HTML, CSS, JavaScript, Python, Ruby, Lua, LaTeX, SQL, ...)
- Several color themes
- Cancellations and infinite restorations
- Search and replace
- Automation of indentation and blocks
- Keep open files and changes between sessions
- Opening files directly from Dropbox or a file manager
- Character encoding support
- Keyboard shortcuts (List below)
- Sharing documents with other services (dropbox, email ...)
- Previewing HTML files in a browser
- Bracket matching
- Line break
- Execution of scripts in SL4A directly.
- Configurable shortcuts



HTML Color Picker is a handy color selection tool suitable for designers, graphic designers and programmers who need an easy and quick reference of HTML color using different color modes. It supports different modes with RGB, HSV and HEX values. Use the palette or sliders to select the colors.


HTML Editor is a very simple HTML editor, it allows to color syntax: nodes, attributes, javascript, CSS, it has a system of auto-completion, and allows to search and replace text. Opens default files with the extension: html, htm. Requires Adobe Air (free) and Android 2.2 or higher.

Top of new android app







1 - Inserting images on an HTML page


Some images on an HTML page may make it more attractive and more user-friendly, however it is important not to insert too many images that can make the page load long enough and may in some cases affect the quality of your website.
The HTML IMG tag allows you to insert images into an HTML page. The image can be located on the same server as the page in which it is inserted but also on another server by specifying its complete URL.


In order to facilitate the navigation between the pages on the web, HTML offers us the possibility to create links called hypertext links. A hypertext link, as the name implies, makes it possible to establish links between objects of different types: text, image, video ... You can click on a text to access a web page, or on an image to access to a video ...

Wednesday, March 7, 2018





1 - The main HTML formatting tags for a text


HTML has many tags to act on the formatting of a text, we will quote here only the most used tags:

Tuesday, March 6, 2018



Congratulations, you have found the best HTML tutorial available in Latin America and Spain, which is incredibly easy to follow and has been designed to provide a reliable and fluent learning, starting from scratch.





1. HTML is the standard markup language for creating Web pages and Web applications.

Learn easy Html for Smartphone.
Html is most often used as a format for online documents of Web pages. Read in the browser.
Conferences in Tag.




Create, edit and view HTML, CSS and javascript files.

Characteristics:
highlight -syntax
-Defaire redo
-Auto-indentation
-Shortcut buttons
HTML document -View
model -HTML5
Learn programming, web development in HTML. Completely explained Html for web development in a simple way for free.

Learn HTML in a greatly enhanced learning environment with more lessons, real opportunities and community support.

This FREE app will teach you how to design a web page using HTML.

See what the code does.

Now you can also share the code with friends on (Whats app, Facebook, Twitter, etc.).

Top of new android app




With this course, you will learn HTML and you will be able to develop your own web pages. HTML is a programming language that is easy to learn and very useful for creating web pages. It's really a markup language that forms the content to display it from a browser.

With this course you will learn HTML and CSS is a language that is used to give style to your pages with HTML.

Also, you will learn HTML 5, the latest specification of this language.
Top of new android app


Monday, March 5, 2018




1 - The tags of an HTML document


An HTML page is structured using code snippets between hooks, called tags :

<code>...</code>
Here is a general description of the tags that constitute an HTML page:

Sunday, March 4, 2018

1 - What is the Hypertext Markup Language (HTML)


HTML is the acronym for hypertext Markup language: language used to encode text files for use on hypertext systems (technique that creates links between data of different types such as: text ↔ image, text ↔ multimedia file. To create a web page, at the beginning the webmasters used two software, in one they typed the HTML code in the other one they visualized the page, and certainly what they typed as HTML did not correspond to what they got as animated texts, buttons ... Today thanks to the appearance of WYSIYG software (what you see is what you get), the creation of a web page is as simple as the creation of a text document The most used WYSIWYG software is FrontPage, FrontPage express, Dreamwever, Nvu, ... A "standard" html document must start with: HTML  and be marked with /HTML :

Python Exercises With Solutions

  1. Exercises on Python Strings
  2. Exercises on Python lists
  3. OOP Exercices with solutions
  4. Exercises on Python File I/O
  5. Python Dictionary Exercises
  6. Python Sets Exercises
  1. Python Arithmetic Exercises
  2. Equations & System Of Equations
  3. Polynomials and Functions
  4. Python Arithmetic Exercises 
  5. Numpy, Matplolib, Sympy , Scipy - Exercises
  6. Python Arithmetic Exercises
  1. Python GUI Tkinter Exercises



Younes Derfoufi

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) Bootstrap CSS (1) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (9) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (35) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (5) Python Reference (1) Python Source Code (1) Python-Books (6) Python-DVD-Training (1) Python-Exercises (297) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (4) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates