Skip to content

Instantly share code, notes, and snippets.

View serdarsen's full-sized avatar

Serdar ŞEN serdarsen

View GitHub Profile
@serdarsen
serdarsen / linebreak.md
Created July 21, 2019 15:17
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


@serdarsen
serdarsen / Grid
Created June 14, 2018 20:23 — forked from lithid/Grid
Here is a grid using python and GTK3, loading dynamically based on window size/re-size. I came up with this example while trying to mimic a gridview of images for a wallpaper application. The example is below.
#!/usr/bin/env python2
from gi.repository import Gtk
class Grid(Gtk.Window):
widget_list = []
WIDGET_SIZE = 140
COLS = 1
NUM = 100
def calcule_columns(self, scroll, grid):
@serdarsen
serdarsen / combo.py
Created May 22, 2018 13:42 — forked from Furao/combo.py
Prevent a Combobox from scrolling in PyGTK
def combo_scrolling(combobox, event):
"""Prevent the comboboxes from scrolling."""
combobox.emit_stop_by_name("scroll-event")
values = ['item 1', 'item 2', 'item 3']
combo = gtk.combo_box_new_text()
# Fill with part type options
for val in values: