Question: I have a .txt textfile with a list formatted like 
`[' ok ', ' test ', ' help ']`
How can I read/import this textfile list into a python list?

Answer: 
You could take a look into the following example [angular/material2 Tooltip Demo](https://github.com/angular/material2/blob/master/src/demo-app/tooltip/tooltip-demo.html)

Basically you could set up the tooltip as follows (you could define not only the css but also the position, the hide delay, the show delay and if it is disable or not):

```html
<button #tooltip="mdTooltip"
            md-raised-button
            color="primary"
            [mdTooltip]="message"
            [mdTooltipPosition]="position"
            [mdTooltipDisabled]="disabled"
            [mdTooltipShowDelay]="showDelay"
            [mdTooltipHideDelay]="hideDelay"
            [mdTooltipClass]="{'red-tooltip': showExtraClass}">

```

In your component then

```js
position: TooltipPosition = 'below';
message: string = 'Here is the tooltip';
disabled = false;
showDelay = 0;
hideDelay = 1000;
showExtraClass = true;

```

And the css as example:

```css
/deep/ .red-tooltip {
  background-color: rgb(255, 128, 128);
  color: black;
}

```
Here's a solution without ::ng-deep / ViewEncapsulation.None. With it you can also use different tooltips in same / different components and each will have their own separate style.

> 
> Firstly, in styles.scss define
> 
> 
> 
> ```
> .mat-tooltip.my-tooltip
> {
> background-color: blue !important;
> }
> 
> ```
> 
> Then in the html component with matTooltip use:
> 
> 
> 
> ```
> [matTooltipClass]="'my-tooltip'"
> 
> ```
> 
> I hope this helps
> 
> 
>